If you can’t use a mouse, a single unreachable button can end your visit. Keyboard accessibility means every link, button and field works from the keyboard alone, and you can check it in minutes.
This guide is part of our web accessibility basics series.
| Item | Value |
|---|---|
| Keyboard operation | SC 2.1.1, Level A: everything usable through a keyboard interface |
| No keyboard trap | Focus can be moved away using only a keyboard interface |
| Visible focus | Any keyboard operable user interface has a mode of operation where the focus indicator is visible |
| Skipping repeated blocks | A mechanism is available to bypass blocks of content repeated on multiple pages |
| Basic navigation keys | Tab moves forward, Shift+Tab moves back |
These facts come from the Understanding page for keyboard operation and the BC Government keyboard guidance. Guidance gets revised, so check the sources before you rely on them.
Why keyboard access matters
The W3C explains that many people rely on the keyboard interface, including blind people and some people with mobility impairments (W3C, keyboard criterion). Screen reader users move through a page with keys rather than a pointer, so a control that only responds to a mouse is invisible to them.
The intent is also broader than a physical keyboard. The W3C says content should be operable through a keyboard or keyboard interface, so that an alternate keyboard can be used.
The BC Government lists examples of alternate keyboards and emulators:
- Speech input software
- Sip-and-puff software
- On-screen keyboards
- Scanning software
If your page works with the Tab and Enter keys, it generally works with all of these, as the BC guidance describes.
What the standards require
The keyboard criterion, SC 2.1.1: all functionality must be operable through a keyboard interface without requiring specific timings for individual keystrokes. The exception is input that depends on the path of the user’s movement, not just the endpoints (W3C). Handwriting is the W3C’s example: the technique is path-dependent, but the underlying function, text input, is not.
The same wording appears in the Access Board’s ICT Baseline, which also lists SC 2.1.2 No Keyboard Trap in its keyboard requirements (Access Board ICT Baseline). The BC Government lists keyboard access as SC 2.1.1, Level A (BC Government).
Three related requirements make keyboard use workable in practice:
- SC 2.1.2 No Keyboard Trap: focus can be moved away using only a keyboard interface. If that takes more than unmodified arrow or Tab keys, users must be told how.
- SC 2.4.7 Focus Visible: any keyboard operable interface has a mode where the focus indicator is visible.
- SC 2.4.1 Bypass Blocks: a mechanism lets users skip blocks of content repeated on multiple pages.
Sources: W3C on keyboard traps, W3C on focus visible and W3C on bypass blocks. The W3C Understanding documents are informative explanations, not the normative text.
The keys people actually use
Knowing the standard keys tells you what a custom control must respond to. The University of Washington lists the common ones:
- Tab: move to the next focusable element.
- Shift+Tab: move to the previous focusable element.
- Enter: activate the current link or button.
- Space: check or uncheck a checkbox or radio button.
- Escape: close an element that has appeared dynamically, such as a popup menu or dialog.
Arrow keys move between radio buttons and, in some cases, menu links. If you build something that needs other keys, the Access Board says the interface must clearly document the commands and make users aware that they exist.

Making focus visible and logical
The W3C puts it bluntly: without a focus indicator, sighted keyboard users cannot operate the page (W3C, focus visible). Browsers supply a default outline, and removing it without a replacement is a common way to fail.
The University of Washington asks for a clear, consistent visible indicator, such as a solid blue outline or border around the element that currently has keyboard focus (UW). The BC Government adds that the order of focusable elements should be logical and intuitive.
Native links, buttons and form fields are focusable by default. For an element that is not natively focusable, such as a div, the same UW page says it can be made focusable with the HTML tabindex attribute. Prefer the native element where you can, because it brings key handling with it.
Repeated navigation is the other common burden. The W3C lists navigation links, header content and advertising frames as repeated blocks, which is why a skip link at the top of the page helps so much (W3C, bypass blocks). Forms need the same care, which our guide to accessible forms covers.
How to test with only a keyboard
Testing needs no special tools. The University of Washington says to navigate your site using the keyboard only and not to touch the mouse (UW).
- Put the mouse aside and press Tab from the top of the page.
- Check that every link, button, field and menu is reached, in an order that makes sense.
- Confirm you can always see where focus is.
- Activate each control with Enter or Space, and close dialogs and menus with Escape.
- Look for any place where focus gets stuck and you can’t leave.
The Access Board’s test method starts with standard keyboard commands such as Tab, Space Bar, Enter and Escape to validate access and control of all functionality (Access Board). After that, test with assistive technology; our guide on how to test with a screen reader is a good next step.
This is an independent educational site and is not affiliated with any government agency. Nothing here is legal advice, so use the official sources for authoritative text.
Frequently asked questions
Does every control need to be reachable with Tab?
Show answer
All interactive components, such as links, buttons and controls, must work with the keyboard alone, per the University of Washington guidance. Native elements get this automatically, while custom widgets need extra work.
What is a keyboard trap?
Show answer
It is a component that takes focus and won’t give it back. The W3C notes that a trap can interfere with the whole page, so the rule applies to all content, even content not used to meet other criteria.
Can I hide the focus outline for looks?
Show answer
Only if you supply a visible replacement. The W3C allows browsers to optimize when the indicator shows, but authors must still provide a mode of operation where it is visible.
Do mouse-style interactions like drawing fail the rule?
Show answer
Not necessarily. The W3C’s exception covers functions that need path-dependent input, though the underlying function, such as entering text, usually still needs a keyboard route.



