Keyboard accessibility
Also called: Keyboard navigation, Keyboard operable
Being able to use every function of a page with a keyboard or keyboard-like input alone, without a mouse.
Definition
WCAG 2.1.1 Keyboard, Level A, requires that all functionality of the content is operable through a keyboard interface without requiring specific timings for individual keystrokes. The only exception is a function that depends on the path of movement, such as freehand drawing.
WCAG defines a keyboard interface as an interface used by software to obtain keystroke input. So it covers not only physical keyboards but anything that emulates one: switch devices, sip-and-puff, and speech input.
Why it matters
People who are blind use the keyboard with a screen reader. People with tremors or limited hand movement often cannot aim a mouse. All of them are blocked by a menu that opens only on hover or a custom control that never takes focus. Keyboard access is the base for several other criteria: focus order, visible focus and no keyboard trap.
How to test or meet it
Put the mouse away and go through your key pages and tasks:
- Tab and Shift+Tab reach every link, button and field, in a sensible order.
- Enter and Space activate controls; arrow keys work inside menus, tabs and radio groups.
- You can always see where focus is.
- Dialogs, menus and date pickers open, work and close (Escape) without a mouse.
Automated tools can only spot some causes, such as a scrollable area that cannot take focus or a positive tabindex. Whether a whole task works by keyboard needs this manual test.
WCAG criteria
- 2.1.1 Keyboard (Level A)
- 2.1.2 No Keyboard Trap (Level A)
- 2.1.3 Keyboard (No Exception) (Level AAA)
- 2.4.3 Focus Order (Level A)
- 2.4.7 Focus Visible (Level AA)
Related terms
Sources
By the Perceivly team · Published . This explains a term; it is not legal advice.