A Ten Minute Keyboard Accessibility Checklist

Many people never use a mouse. Some have a tremor or limited movement, some are blind and use a screen reader, and some use a switch device or voice control that works through the keyboard interface. If your website works from the keyboard, it works for all of them. The test costs nothing and takes about ten minutes.

The keys you need

KeyWhat it does
TabMoves to the next link, button or form field
Shift + TabMoves back to the previous one
EnterFollows a link or presses a button
SpacePresses a button, ticks a checkbox, scrolls the page
Arrow keysMove within radio buttons, select lists, menus and tabs
EscapeCloses a menu, pop-up or dialog

The seven checks

1. Can you see where you are?

Press Tab and watch for a visible outline on each item. If the focus disappears, a stylesheet has probably removed it with outline: none. Restore a clear focus style. WCAG calls this criterion Focus Visible.

2. Can you reach everything?

Every link, button, field, menu and video control should receive focus. Items you can click but cannot Tab to are usually a div or span with a click handler. Use a real button or a element.

3. Is the order sensible?

Focus should follow the reading order: header, navigation, main content, footer. A jumpy order comes from layout tricks or from positive tabindex values. Fix the order in the HTML and remove any tabindex greater than zero.

4. Can you skip the navigation?

The first Tab press on a page should reveal a "Skip to main content" link. Without it, keyboard users tab through the whole menu on every page.

5. Can you get out again?

Open every menu, pop-up, date picker and embedded player, then leave it. If focus cannot escape, you have found a keyboard trap, which is one of the most serious failures in WCAG. A dialog should keep focus inside while it is open, close with Escape and return focus to the button that opened it.

6. Do menus and pop-ups work?

Dropdown menus should open with Enter or Space, not only on mouse hover. Content that appears on focus should stay visible until you move away or dismiss it.

7. Can you complete a form?

Fill in and submit your contact form or checkout with the keyboard alone. Check that error messages receive focus or are announced, and that you can correct the field.

Write down what you find

Note the page, the element and what happened. That list is the start of a real accessibility backlog, and most of the fixes are small changes to HTML and CSS.

Where the widget helps

The Keyboard Navigation tool in the free ADA Okay! widget adds a strong focus outline, a skip link and quick keys that jump between headings, links, form fields, buttons and images. It makes a working page easier to move around. It cannot free a keyboard trap or make a mouse-only control respond, so run the seven checks first. For the limits, read what widgets can and cannot do.

Thaddeus Okonjo-Reyes, Front-end developer and widget maintainer
Thaddeus has built front ends for retailers and local councils since 2011 and tests everything with a keyboard and a screen reader before it ships. He maintains the ADA Okay! widget and writes the hands-on technical guides.

Get your ADA Widget today - for FREE!

Text reader, keyboard navigation, contrast modes and more with one line of code.

Get the free widget

Keep reading

How to Write Alt Text That Helps

What Accessibility Widgets Can and Cannot Do