Keyboard & focus

The keyboard is the floor that every other input method stands on. If a feature works with a keyboard alone, it almost always works for switch devices, voice control, and screen readers too — because those technologies drive the page through the same focus and activation model. So the rule is simple and absolute: everything that works with a mouse must also work without one. And it isn’t enough to be merely operable — the user has to be able to see where they are. Focus must be visible, it must move in an order that matches the visual layout, it must never get trapped, and it must never be hidden behind a sticky header or cookie bar.

Who this affects

  • Keyboard-only users — people who can’t or don’t use a pointer navigate entirely with Tab, Shift+Tab, arrow keys, Enter, Space, and Esc. A control that only responds to a mouse click is invisible to them.
  • Screen reader users move through interactive elements with the keyboard and their AT’s own commands. Unfocusable custom widgets and illogical focus order leave them unable to reach or understand controls.
  • Switch-device and voice-control users rely on the focus order and on named, focusable controls; their hardware and software step through the same tab sequence the keyboard exposes.
  • People with tremor, RSI, or limited dexterity often find precise mouse targeting painful or impossible and prefer the keyboard, which demands a visible focus indicator to track their position without fine pointing.
  • Power users — sighted, able-bodied people who simply work faster from the keyboard — benefit too, which is why good keyboard support pays off for everyone.

Standards covered

The lessons in this category map keyboard operability and focus behaviour to the success criteria and laws that require them. The same fixes satisfy all of them at once.

WCAG 2.1.1 Keyboard WCAG 2.1.2 No Keyboard Trap WCAG 2.4.3 Focus Order WCAG 2.4.7 Focus Visible WCAG 2.4.11 Focus Not Obscured WCAG 2.4.1 Bypass Blocks EN 301 549 Section 508 ADA AODA

Lessons

More keyboard lessons are coming

We’re adding focused lessons on roving tabindex and arrow-key composite widgets, focus management for menus and disclosure patterns, keyboard shortcuts and the single-character-key escape, and drag-and-drop keyboard alternatives. Start with Keyboard access & visible focus — it covers the defects you’ll meet most often.