Keyboard navigation and accessibility testing
Keyboard accessibility website testing — every interactive element operable without a mouse, in a logical order, with a visible focus indicator.
Accessibility
Every interactive element on a website must be operable using a keyboard alone — links, buttons, form fields, menus, sliders, date pickers. That means a logical order, with a visible indication of which element currently has focus.
This is one of the commonest accessibility failures on otherwise well-built business sites. Much of the visible testing during a build happens with a mouse, so keyboard-only failures go unnoticed.
What full keyboard navigation and keyboard accessibility actually requires
Keyboard navigation requires five things: every interactive element reachable, every element activatable without a mouse, a logical focus order, a visible focus indicator, and no keyboard traps.
| Requirement | What it means in practice |
|---|---|
| Every interactive element is reachable | Tab key moves focus forward through all links, buttons and form fields; Shift+Tab moves back |
| Every element can be activated without a mouse | Enter or Space activates a focused button or link |
| Focus order is logical | Tabbing follows the visual and reading order of the page, not a scrambled order set by the underlying code |
| Focus is visible | A clear visual indicator (commonly an outline) shows which element currently has keyboard focus |
| No keyboard traps | A user can always tab out of any component they tabbed into |
Why custom-built interactive elements are where this breaks
Standard HTML elements are keyboard accessible by default — a native button, a native link, a native form field — because browsers implement that behaviour automatically. The failures concentrate in custom-built interactive components: a dropdown menu built from styled generic containers rather than native form controls, a custom date picker, an image carousel, or a modal dialog.
Each of these needs keyboard behaviour built in explicitly by the developer, and that step is skipped because the component works fine with a mouse and nobody tests it another way. The keyboard behaviour is wired up with the tabindex attribute: tabindex="0" makes an otherwise non-interactive element reachable in the natural tab order. Small positive tabindex values are widely discouraged because they override that natural order rather than following it, a common cause of the “jumps confusingly around the page” failure described further down.
Focus indicators and keyboard focus, and why removing them is a common but serious mistake
Removing the browser’s default focus outline without replacing it is a common but serious mistake. It leaves a keyboard user with no way to see where they currently are on the page.
Design systems remove the default outline because the blue or dotted box clashes with a design’s aesthetic. Removing it without an equally visible custom indicator functionally breaks keyboard navigation, even where every element stays reachable and operable. When a focus outline is removed for design reasons, a clearly visible custom replacement is not optional.
Keyboard traps — a more severe failure for keyboard users worth specifically checking for
A keyboard trap occurs when a user can tab into a component but cannot tab back out of it using standard keyboard commands. It is commonly a poorly implemented modal window, embedded widget, or third-party plugin.
The trap strands the user and forces a page reload to recover. It is one of the more serious keyboard failures: it does not just make a feature hard to use, it blocks a user from the rest of the site entirely. Test any modal, popup or embedded widget specifically for this.
How to test your own site using keyboard tabindex and the spacebar in two minutes
Put your mouse aside entirely. Starting from your homepage, use only Tab, Shift+Tab, Enter and Space to navigate. Try to reach your main navigation, open any menu, and complete your contact form using only the keyboard.
If you get stuck, cannot tell where you are on the page, or cannot escape a component, you have found a genuine keyboard accessibility failure — verified without any specialist tool or knowledge. The same keyboard test applied to a form is covered on forms everyone can complete.
Why this test is more reliable than it sounds
Keyboard operability is close to binary and directly testable by anyone, unlike the WCAG success criteria that require nuanced human judgement. Either a task completes with only a keyboard, or it does not.
That makes it one of the more accessible checks for a non-technical business owner to perform on their own site, without waiting for a specialist audit. What a scanner can and cannot check on its own is covered on what automated scanners can and cannot find.
What to ask a supplier about tabindex values
Ask directly whether every custom-built interactive component — menus, sliders, modals, date pickers — has been tested for keyboard operability, not just visually reviewed with a mouse. Ask specifically about any third-party widgets or embedded tools too, because they sit outside the developer’s own code and introduce keyboard traps the developer did not build and has not tested.
Skip links, and why their absence matters more than it first appears
A “skip to main content” link, visually hidden until it receives keyboard focus, lets a keyboard user bypass repeated navigation menus and jump straight to a page’s main content. Without it, that user tabs through the same header links on every page of a visit.
Its absence is a minor inconvenience on a single-page visit. Across a multi-page browsing session it becomes genuinely significant, because the repeated navigation tabbing compounds with every page load.
Why touch, switch-access devices, and website keyboard input raise related but distinct considerations
Keyboard operability is closely related to, but not identical with, operability by other assistive input devices. Switch-access systems, used by people with significant motor disabilities, are one example. Motor disability is one of four categories, and who accessibility affects sets out what vision, hearing, motor and cognitive disability each need from a website.
Switch-access systems rely on the same underlying keyboard-accessible interface, so building genuine keyboard support improves compatibility with these input methods as a byproduct. That is a further reason keyboard testing is one of the higher-leverage checks a business performs.
What “logical order” means when a page has a complex layout
On a straightforward, single-column page, logical tab order matches visual reading order without extra thought. A more complex layout is different: multiple columns, a sidebar, overlapping components.
There the underlying code order and the visual order diverge without careful attention, producing a tab sequence that jumps confusingly around the page even though each element is technically reachable. Test this explicitly on any page with a non-trivial layout, not just simple ones.
What to do next
Run the two-minute keyboard test on your own site today, focusing on any custom menus, sliders or pop-ups. Where this discipline sits within a build is covered on development as an ongoing engagement.