# WCAG 2.1.1 Keyboard: explained simply

Everything a website does must also work from a keyboard, without depending on fast key presses or holding a key down. The only exception is a function that depends on the path of a movement and not just its endpoints, such as freehand painting. Mouse and touch input may still be offered alongside.

## What does the criterion require?

Not everyone uses a mouse. People who are blind cannot follow a pointer with their eyes. Others work
with speech input, an on-screen keyboard, sip-and-puff software or a switch. These tools pass their
commands on as if they were a keyboard; the W3C calls them keyboard emulators. People with low vision
who lose track of the pointer, and some people with hand tremors, also prefer the keyboard or rely on
it entirely.

So the criterion requires that all functionality of the content can be operated through a keyboard
interface. That is not only the physical keyboard. A keyboard interface is the way software receives
keystrokes, including from an external keyboard paired with a phone or from the tools mentioned
above.

Operation must not require specific timings for individual keystrokes. The W3C means, for example,
having to press several keys within a very short time, or having to hold a key down for a long time
before it registers.

Three clarifications from the W3C help in practice:

- **An equivalent route is enough.** Not every visible control has to be reachable by keyboard. It is
  enough that keyboard users can perform the same or a comparable action (G202). One W3C example: the
  submit button of a search form cannot receive focus, but the search can be submitted by pressing
  Enter in the search field. That passes. The W3C does advise thinking about how users will discover
  such keyboard routes.
- **Usual keys are recommended, not required.** A custom button that reacts only to Enter and not to
  the Space bar still meets the criterion. The W3C still encourages following the usual conventions.
- **Operating system MouseKeys do not count.** Someone moving the pointer with the number keys is, as
  far as the page is concerned, still using a mouse. That is no substitute for keyboard operation.

A page may offer mouse, touch and other input as well. The criterion explicitly does not forbid or
discourage that; it only requires that the keyboard is not left out.

## The exception: input that depends on the path

The only exception is a function whose underlying input depends on the path of the user's movement
and not just the endpoints. The W3C's examples are a watercolour painting program, where the brush
stroke varies with the speed and duration of the movement, and a flight simulator for model
helicopters, which is meant to teach real-time behaviour.

Straight lines, regular shapes, resizing a window and dragging an object to a place where the route
there does not matter are not path-dependent. A photo album that lets you reorder pictures by drag and
drop can, for example, also offer cut and paste (G90).

What counts is the function, not the input technique. Entering text by handwriting moves a pen along
a path, but the function behind it, entering text, does not need that path. So the exception does not
apply. A Level AAA criterion requires keyboard operation without this exception.

## Common failures

- **A function tied to a mouse event only.** An arrow image leads to the next page but only reacts to
  the mouse button being pressed (`onmousedown`). Keyboard users are stuck (F54).
- **An emulated link.** A `span` or `img` element is given click behaviour by script so that it acts
  like a link. It cannot be reached with Tab, and assistive technology does not recognise it as a link
  (F42). Real links and form controls get keyboard operation from the browser (H91), and a script on
  the `onclick` of a link or button also runs on Enter or Space (SCR35).
- **Focus removed by script.** An element drops focus the moment it receives it, often so that no
  focus ring shows. It can then only be operated with a mouse (F55). This also fails
  [2.4.7 Focus Visible](https://barrierepruefung.de/en/knowledge/wcag/2-4-7-focus-visible).

## Checked automatically and checked by you

### What the automated check detects

Coverage: selective. The automated check covers individual aspects of this criterion. Controls that cannot receive focus are detected. Whether a reachable function is also operable only a keyboard walk-through shows.

- [Control not reachable by keyboard](https://barrierepruefung.de/en/knowledge/rules/own-keyboard-unfocusable-control) (`own.keyboard-unfocusable-control`)
- `frame-focusable-content`
- Scrollable region must have keyboard access (`scrollable-region-focusable`)

### What you check yourself

You answer this question in the manual checks of your scan.

#### Can all functions be operated with the keyboard alone?

1. Put the mouse aside. Move through the page with the Tab key (backwards with Shift+Tab) and trigger every element: links with Enter, buttons with Enter or Space, lists and options with the arrow keys. The automatic check only finds elements that cannot be focused at all, not those that cannot be operated once focused.
2. Operate menus, dialogs, carousels, tabs, sliders, date fields and forms completely. Everything you can reach with the mouse must also work with the keyboard, including content that appears only on hover.
3. If there is drag and drop or resizing with the mouse, there must be a way to do it with keys, for example arrow keys or buttons.

## Classification

- Level: A
- Introduced in: WCAG 2.0
- W3C explanation: [Understanding 2.1.1](https://www.w3.org/WAI/WCAG22/Understanding/keyboard)

## Sources

- [WCAG 2.2, W3C Recommendation](https://www.w3.org/TR/WCAG22/)
- [Understanding 2.1.1](https://www.w3.org/WAI/WCAG22/Understanding/keyboard)
- [W3C Techniques, G202: Ensuring keyboard control for all functionality](https://www.w3.org/WAI/WCAG22/Techniques/general/G202), retrieved on 2026-11-28
- [W3C Techniques, G90: Providing keyboard-triggered event handlers](https://www.w3.org/WAI/WCAG22/Techniques/general/G90), retrieved on 2026-11-28
- [W3C Techniques, H91: Using HTML form controls and links](https://www.w3.org/WAI/WCAG22/Techniques/html/H91), retrieved on 2026-11-28
- [W3C Techniques, SCR35: Making actions keyboard accessible by using the onclick event of anchors and buttons](https://www.w3.org/WAI/WCAG22/Techniques/client-side-script/SCR35), retrieved on 2026-11-28
- [W3C Techniques, F54: Failure of Success Criterion 2.1.1 due to using only pointing-device-specific event handlers (including gesture) for a function](https://www.w3.org/WAI/WCAG22/Techniques/failures/F54), retrieved on 2026-11-28
- [W3C Techniques, F42: Failure of Success Criteria 1.3.1, 2.1.1, 2.1.3, or 4.1.2 when emulating links](https://www.w3.org/WAI/WCAG22/Techniques/failures/F42), retrieved on 2026-11-28
- [W3C Techniques, F55: Failure of Success Criteria 2.1.1, 2.4.7, 2.4.13, and 3.2.1 due to using script to remove focus when focus is received](https://www.w3.org/WAI/WCAG22/Techniques/failures/F55), retrieved on 2026-11-28

---

As of: 2026-11-29 · https://barrierepruefung.de/en/knowledge/wcag/2-1-1-keyboard
