How to test your website with a keyboard (10 minutes)

Short answer: put the mouse aside and try to use your site with only Tab, Shift+Tab, Enter, Space, the arrow keys and Escape. You should always see where you are, reach everything, and be able to get out of every pop-up. It takes about ten minutes and finds problems no scanner can.

Published by Web Accessibility Fix

Why a keyboard test?

Many people can’t use a mouse: people with motor disabilities, people who rely on a screen reader, and anyone with a broken wrist or a dead trackpad. They all move through a site with the keyboard or with tools that act like one. A scanner can’t tell whether focus gets trapped in a pop-up or whether a menu works with the arrow keys. Automated checks miss exactly this, so it is worth doing by hand.

This is general information, not legal advice. A keyboard test is not a full audit, but it shows you quickly whether a site has basic problems.

The keys you need

Keys for the test
KeyWhat it should do
TabMove to the next link, button or form field.
Shift + TabMove back to the previous one.
EnterActivate a link or button.
SpacePress a button, tick a checkbox, open a select list.
Arrow keysMove within menus, tabs, radio groups and sliders.
EscapeClose a pop-up, menu or dialog.

Mac, Safari and Firefox note

On a Mac, Safari’s Tab key moves only through form fields and pop-up menus by default. According to Apple, Tab also reaches buttons and other controls once Keyboard navigation is turned on in the Mac’s Keyboard settings, and Option+Tab reaches links as well. You can swap the two behaviors by turning on “Press Tab to highlight each item on a webpage” in the Advanced pane of Safari’s settings.1 If Tab seems to skip links, that’s why. Chrome and Edge on a Mac, and Firefox, may follow their own or the system’s keyboard setting, so if Tab skips controls in those browsers, check the Keyboard navigation setting in macOS first. Windows browsers use Tab for everything by default.

The 10-minute test, step by step

Open your home page and one page where customers do something: book, buy or contact you. Keep a sheet or the table further down open to note what you find.

  1. Press Tab once on a fresh page

    A “Skip to main content” link should appear, usually at the top left, and pressing Enter should move you past the menu. If nothing appears, note it. Criterion: 2.4.1 Bypass Blocks. Not every site needs a skip link if its structure is simple, but long menus make one very useful.

  2. Keep pressing Tab and watch for the focus indicator

    Every link, button and field should show a clear outline or highlight when you land on it. Pass: you always know where you are. Fail: at any point the indicator vanishes and you have to guess. Criterion: 2.4.7 Focus Visible.

  3. Check the order

    Focus should move in the order you would read the page: top to bottom, left to right, menu before content. Jumping to the footer and back, or into hidden content, is a fail. Criterion: 2.4.3 Focus Order.

  4. Make sure nothing hides the focus

    With a sticky header, cookie banner or chat button on screen, tab down the page. The focused item must not be completely covered. Criterion: 2.4.11 Focus Not Obscured (Minimum), new in WCAG 2.2.2

  5. Use the menus and dropdowns

    Can you open a submenu with Enter, Space or the arrow keys, reach its links, and close it with Escape? If the submenu only opens on mouse hover, keyboard users can never see it. Criterion: 2.1.1 Keyboard.

  6. Open pop-ups and dialogs

    Open a newsletter pop-up, a photo lightbox or a booking dialog. Focus should move into it, stay inside while it’s open, close with Escape, and return to the button you used. If you can tab behind the dialog to the page underneath, or can’t get out at all, that’s a fail. Criteria: 2.1.2 No Keyboard Trap and 2.4.3.

  7. Handle the cookie banner and chat widget

    These are common problem spots because they come from third-party tools. On a fresh load, can you accept or decline cookies with the keyboard? Can you open the chat, type, and leave it again? Tab into any embedded map or video and make sure you can tab back out. Criteria: 2.1.1 and 2.1.2. If the fault is in the vendor’s tool, the fix may be a setting, an update or a different tool.

  8. Try carousels and sliders

    Can you move through slides and pause automatic movement without a mouse? Moving content that runs for more than five seconds needs a pause control. Criterion: 2.2.2 Pause, Stop, Hide, with 2.1.1.

  9. Fill in a form, then make mistakes on purpose

    Tab through your contact or quote form. Each field should have a visible label, and the order should make sense. Then submit it with a required field empty. The error should be written out, tell you which field, and let you reach the field by keyboard. Test only your own forms. Criteria: 2.1.1, 3.3.1 Error Identification.

  10. Go through checkout or booking to the last step

    Add something to a cart, change a quantity, choose shipping, pick a date. Stop before paying, unless it’s a test order. Date pickers, quantity steppers and payment frames are frequent failures. Criteria: 2.1.1, 2.1.2, 2.4.3.

How to record what you find

Write each problem down with the page, what you did and what happened. A table like this one is enough to hand to a developer or to us.

Example record (fill in your own rows)
PageWhat I didResultPass or failWCAG
HomeTabbed through header menuNo outline on the “Services” linkFail2.4.7
ContactOpened the chat widget, pressed EscapeChat stayed open, focus stuck insideFail2.1.2
CheckoutChose a delivery date with arrow keysWorked, order made sensePass2.1.1, 2.4.3

A step passes when you could do the task, saw where you were, and could always leave. It fails if you needed the mouse, lost the focus, or got stuck. Mark anything you’re unsure about as “check” and have someone else try it. For turning a list like this into a structured record, use our free report template.

Which WCAG criteria are behind this?

All six apply at Level A or AA, the usual target. The criteria are 2.1.1 Keyboard (A), 2.1.2 No Keyboard Trap (A), 2.4.3 Focus Order (A), 2.4.7 Focus Visible (AA), 2.4.11 Focus Not Obscured (Minimum) (AA, new in 2.2) and 2.4.1 Bypass Blocks (A). For the wider picture, see our WCAG 2.2 checklist.

What the keyboard test can’t cover

It doesn’t tell you whether a screen reader announces things correctly, whether colors have enough contrast, or whether images have good descriptions. The free check picks up some of those, such as missing labels and low contrast, but it looks at one page only. A full audit combines both kinds of testing with screen-reader checks and a written report.

A sensible next step

If you found problems, don’t panic: many are theme or template changes. Send us what you found and we’ll tell you whether it looks like a quick fix or something for an audit. You can also start with the free check to see what software can detect.

  1. Apple. Safari User Guide, “Keyboard shortcuts and gestures”: Tab and Option-Tab behavior, the Keyboard navigation setting, and the Safari Advanced setting “Press Tab to highlight each item on a webpage.” support.apple.com
  2. W3C. Web Content Accessibility Guidelines (WCAG) 2.2, including 2.4.11 Focus Not Obscured (Minimum), added in version 2.2. w3.org/TR/WCAG22