Performance and accessibility 4 min read Updated
What keyboard accessibility asks for in WCAG 2.2
In short
Every function must work from the keyboard, timing must not decide the result, and repeated blocks need a way to be bypassed.
A page that a keyboard cannot operate often passes a quick mouse test, because the mouse reaches controls the keyboard never does. Start by putting the mouse aside and tabbing through each main template. Then check three things: operation, timing and repeated blocks of content.
What keyboard operable means
Success Criterion 2.1.1, Keyboard, says that all functionality of the content is operable through a keyboard interface. The wording is short, but the requirement is broad. Every action a mouse user can take, such as opening a menu, choosing an item in a list, dismissing a message or submitting a form, must also work from the keyboard.
The criterion has one exception. It covers functions that need input depending on the path of the user’s movement, such as freehand drawing, which a keyboard cannot reproduce. Most interface controls do not fall into that group. A product filter, a date picker or an add-to-basket button can and should work from the keyboard.
The criterion is Level A, which makes it the minimum for accessibility. A page that fails it often fails in ways that a quick mouse test does not reveal, because the mouse reaches controls that the keyboard cannot.
Keys must not depend on timing
The same criterion states that keystrokes cannot depend on precise timing. The W3C understanding document counts two patterns as timing-dependent input: a function that needs a key held down for an extended period before it registers, and a function that needs rapid repeated keystrokes.
Check any control that uses a long press, a timed sequence or a fast burst of key presses. A control that needs a key held for several seconds, or ten quick presses, fails this rule. A control that responds to one clear key press passes.
Working on something similar in your own product? A few honest sentences are enough – we read every enquiry and reply by email. Apply with your idea
Repeated navigation needs a bypass
Success Criterion 2.4.1, Bypass Blocks, is also Level A. It requires a way to bypass blocks of content that are repeated on multiple pages, such as a long navigation menu at the top of every page. Without one, a keyboard user has to tab through the same links on every page they visit.
The W3C lists three sufficient techniques. The most common is a link at the top of each page that goes straight to the main content. The others are a link at the start of a repeated block that jumps to its end, and links at the top of the page to each area of the content. The W3C also notes that browser keyboard shortcuts can sometimes make a skip link unnecessary, for example when the navigation sits at the bottom of the page.
Custom widgets often fail first
Many keyboard failures come from custom controls built from generic containers with click handlers. A list of options drawn with styled blocks can look like a dropdown, yet it does nothing for keyboard users unless the keyboard behaviour is written too. Criterion 2.1.1 asks for the result, not for a particular method, so the fix is a matter of engineering practice.
Native controls usually meet the requirement with less work. Links and buttons are reachable from the keyboard by default. Start from the native element, and add custom behaviour only where the design needs something the element does not provide.
A keyboard check you can run today
Run this routine on each main template and each form before release. It needs only a keyboard and a browser.
- Put the mouse aside, load the page and press Tab from the address bar.
- Confirm that the first stop takes you to a skip link or to the main content.
- Tab through every control in order, and check that each one can be activated with the key that suits its type.
- Open each menu, dialog and filter from the keyboard, then close it again without the mouse.
- Hold or repeat each key-driven action for a few seconds, and check that nothing depends on timing.
- Record each control that cannot be reached, then fix the cause in the shared component so that every page benefits.
Whether a focused control is visible is a separate question, covered in focus indicators. For a wider testing plan that also includes screen readers, see How to test a service for accessibility.
The criteria are quoted from the W3C Understanding documents for Success Criterion 2.1.1 and Success Criterion 2.4.1. The routine is a practical check and does not replace a full audit.
Common questions
- Must every function work from the keyboard?
- Yes. Success Criterion 2.1.1 requires all functionality of the content to be operable through a keyboard interface, with one exception for input that depends on the path of the user’s movement.
- Is a skip link always required?
- Success Criterion 2.4.1 requires a bypass mechanism, and a skip link is one of the techniques the W3C lists. The W3C also notes that browser keyboard shortcuts can make a skip link unnecessary in some cases.
- Does a key have to be held down for a function to work?
- The W3C understanding document counts a function that needs a key held for an extended period, or rapid repeated keystrokes, as timing-dependent input that 2.1.1 does not allow.
Sources
- Understanding Success Criterion 2.1.1: Keyboard, W3C (WCAG 2.2). Accessed 14 November 2026
- Understanding Success Criterion 2.4.1: Bypass Blocks, W3C (WCAG 2.2). Accessed 14 November 2026
Further reading
-
Focus indicators that stay visible and unhidden
A focus indicator must be visible, keep at least 3:1 contrast with its surroundings, and never be covered entirely by a sticky header.
-
How to test a service for accessibility
Combine automated scans with manual checks, testing with assistive technology and testing with disabled users, starting in alpha.
-
Semantic HTML and why element choice matters
Choose each element for the meaning it gives content, because screen readers, keyboards and search engines all read the structure you write.
Have an idea that should exist? Or a working product that needs more customers, a new website or a complete rework? Bring us anything. Apply with your idea