Keyboard operation
People who cannot use a pointer get stuck wherever something only works with a mouse.
The answer
Make everything work from the keyboard, in a sensible order, with the keys people expect. As strong as the weakest rule behind it: moderate.
-
Make everything work from the keyboard, including things that otherwise need hover or drag.
WCAG 2.2 success criterion 2.1.1 Keyboard, level A. Only input that depends on the path of movement, such as freehand drawing, is excepted.
- Applies when
- Any interactive content.
- Based on
- Standard or law
- Principle
- Work for everyone
- Common mistake
- A control that only responds to mouse events.
- StandardStandard: Understanding SC 2.1.1 Keyboard (Level A)W3C WAI
-
Make the keyboard order follow the meaning and use of the page.
WCAG 2.2 success criterion 2.4.3, level A.
- Applies when
- Any page with more than one focusable element.
- Based on
- Standard or law
- Principle
- Work for everyone
- Common mistake
- A tab order that jumps around the page.
- StandardStandard: Understanding SC 2.4.3: Focus OrderW3C WAI
-
Use the keys people expect: Enter for links, Enter or Space for buttons, Space for checkboxes, arrows inside groups, Escape to close.
ARIA practices guide (non-binding) and WebAIM agree. Neither cites user data.
- Applies when
- Custom controls.
- Based on
- Practitioner research
- Principle
- Be consistent
- GuidanceGuidance: Developing a Keyboard Interface (ARIA Authoring Practices Guide)W3C WAI, 2026
- Guidance: Keyboard Accessibility (WebAIM techniques)WebAIM, 2026
The other rules
-
If keyboard focus can get into something, it must be able to get out. If that takes an unusual key, say which.
WCAG 2.2 success criterion 2.1.2, level A.
- Applies when
- Any component that takes focus.
- Based on
- Standard or law
- Principle
- Work for everyone
- StandardStandard: Understanding SC 2.1.2: No Keyboard TrapW3C WAI
-
Let people turn off or change single-key shortcuts, or make them work only when their component has focus.
WCAG 2.2 success criterion 2.1.4, level A. The stated reason is accidental activation, including by speech input.
- Applies when
- Single-character keyboard shortcuts.
- Based on
- Standard or law
- Principle
- Prevent errors
- Common mistake
- Single-letter shortcuts that fire while someone is dictating.
- StandardStandard: Understanding SC 2.1.4 Character Key Shortcuts (Level A)W3C WAI
-
Make a group of controls, such as a toolbar, tabs or a menu, one Tab stop, and move inside it with the arrow keys.
ARIA practices guide, non-binding, with WebAIM describing the same key behavior. No study compares it with many tab stops.
- Applies when
- Composite widgets.
- Based on
- Practitioner research
- Principle
- Let practiced people go faster
- GuidanceGuidance: Developing a Keyboard Interface (ARIA Authoring Practices Guide)W3C WAI, 2026
- Guidance: Keyboard Accessibility (WebAIM techniques)WebAIM, 2026
-
Don’t reorder focus with positive tabindex values, or make things focusable that do nothing.
WebAIM guidance. In one test with five people, a switch user found focus outlines on inoperable elements confusing.
- Applies when
- Managing tab order.
- Based on
- Practitioner research
- Principle
- Be consistent
- User researchUser research: What we learned from user testing of accessible client-side routing techniques with Fable Tech LabsMarcy Sutton, 2019
- GuidanceGuidance: Keyboard Accessibility (WebAIM techniques)WebAIM, 2026
Accessibility
- WCAG 2.2 · 2.1.1WCAG 2.1.1 (A), 2.1.2 (A), 2.1.4 (A), 2.4.3 (A).
- Touch and adapted-pointer users may have no keyboard; pointer alternatives are in Gestures.
Open questions
- OpenOne tab stop per group or many? No user study found.
- OpenNo peer-reviewed study with keyboard-only or switch users was found for this entry; the rules are based on the standard.
- OpenA large survey of screen reader users exists and was not opened in this pass.
Sources
- User researchUser research: What we learned from user testing of accessible client-side routing techniques with Fable Tech LabsMarcy Sutton, 2019
- StandardsStandard: Understanding SC 2.1.1 Keyboard (Level A)W3C WAI
- Standard: Understanding SC 2.1.2: No Keyboard TrapW3C WAI
- Standard: Understanding SC 2.4.3: Focus OrderW3C WAI
- Standard: Understanding SC 2.1.4 Character Key Shortcuts (Level A)W3C WAI
- GuidanceGuidance: Developing a Keyboard Interface (ARIA Authoring Practices Guide)W3C WAI, 2026
- Guidance: Keyboard Accessibility (WebAIM techniques)WebAIM, 2026
Related
- Visible focusAlways show where keyboard focus is, and never cover it.Answer: settled.
- Focus management on open and closeMove focus into a dialog when it opens, and back to the control that opened it when it closes.Answer: moderate.
- Skip linksGive keyboard users a way past repeated blocks: a skip link first in the focus order, and a heading for each section.Answer: moderate.
- GesturesGive every gesture a visible single-tap alternative, and act when the finger lifts.Answer: moderate.
- Links vs buttonsUse a link to go somewhere and a button to do something.Answer: moderate.