New Tool Radar

AI Design Workflows

How to Check an Interactive AI Design for Keyboard Accessibility

Tab through an interactive AI design with the keyboard only, and check that every action a mouse can do has a keyboard way to do it.

Schematic diagram: three steps to check an interactive AI design for keyboard accessibility — tab through it, finish the task, fix the failures — with a practice result of 4 of 6 controls passing and 2 failing on the Maple Corner order page.

An interactive AI design — an order page, a booking form, a menu with choices — is often built and tested with a mouse. For someone who uses only a keyboard, a button that cannot be reached by Tab, or a control that only works by dragging, is a door that does not open. This check puts the mouse aside and uses only the keyboard.

Every action needs a keyboard way

The W3C’s WCAG success criterion 2.1.1, Keyboard, says: “All functionality of the content is operable through a keyboard interface without requiring specific timings for individual keystrokes, except where the underlying function requires input that depends on the path of the user’s movement and not just the endpoints.” The guide’s short version is: “Ensure pointer actions have a keyboard equivalent.”

Most mouse actions have a keyboard equivalent. The W3C page says: “Most actions carried out by a pointing device can also be done from the keyboard (for example, clicking, selecting, moving, sizing).” The exception is narrow: freehand drawing or watercolor painting, where the path of the movement itself is the input. Choosing, opening, moving, and submitting are not exceptions.

Tab through it, then try to finish the task

Start at the top of the design and press Tab through every control, in order, without touching the mouse. Write down each control and how the keyboard operates it: Tab to reach it, Enter or Space to activate it, arrow keys to change a choice. Then try to finish the design’s main task — placing an order, booking a table — using only the keyboard. If you cannot reach a control, cannot see where the focus is, or cannot finish the task, that control fails the check.

Watch for the common failures: a date picker that only opens on click, a carousel that only moves by dragging, a custom button that only reacts to a mouse click, and a focus indicator so faint you cannot tell where you are. The W3C page also notes that using a mouse emulator such as MouseKeys does not satisfy the criterion, because it is a mouse equivalent, not a keyboard equivalent.

Fix the failures in the design, not in the test

A failure is fixed by giving the control a keyboard way to do the same thing: a keyboard-operable date field, arrow-key control for the carousel, a real button that responds to Enter and Space. Do not fix it by telling keyboard users to use a different page. Re-run the Tab-through after each fix, because a new control can introduce a new trap.

Practice keyboard check: fictional Maple Corner

The table below is fictional practice material, for a fictional Maple Corner order page. It is the expected result for the practice controls, worked out against WCAG success criterion 2.1.1, not a run of any design or testing tool.

Control Keyboard way Result
Menu link Tab, then Enter Pass
Drink size selector Arrow keys to change the choice Pass
Quantity stepper Tab to the buttons, Enter to change Pass
Date picker Opens only on click, no keyboard way Fail — add a keyboard way
Photo carousel Moves only by dragging Fail — add arrow-key control
Place order button Tab, then Enter Pass

Four of the six controls pass, and two fail. The date picker has no keyboard way to open it, and the photo carousel moves only by dragging. Both need a keyboard equivalent before the page can be used without a mouse.

Expected result. We checked the W3C’s WCAG success criterion 2.1.1 on keyboard accessibility. We did not run any design or testing tool on the Maple Corner order page.

Limits

This check covers keyboard operation only; it does not cover focus visibility, screen reader announcements, or color contrast, which need their own checks. It also does not cover the narrow exception for path-dependent input such as freehand drawing. The practice page and controls are invented for the exercise, and Maple Corner is fictional.

Sources

  • W3C, “Understanding Success Criterion 2.1.1: Keyboard” — “All functionality of the content is operable through a keyboard interface without requiring specific timings for individual keystrokes, except where the underlying function requires input that depends on the path of the user’s movement and not just the endpoints. The same page says to ensure pointer actions have a keyboard equivalent.”
See all