Speed & Accessibility6 min readBy

Keyboard navigation: a 2-minute check for your site

Put your mouse aside and press Tab. In two minutes you can see whether customers who use a keyboard can reach your menu, your forms and your main button.

A curved line of plain white dominoes standing on a wooden table, with one red domino in the middle

Most website owners test their site the same way: with a mouse or a finger. Click the menu, tap the button, scroll to the footer. Everything works, so the site is fine.

But some of your visitors never touch a mouse. They move through the page with the keyboard, one element at a time, and press Enter to follow a link. If your menu, your contact form or your “Book now” button can’t be reached that way, those visitors simply can’t use it.

The good news: this is one of the few accessibility checks you can do yourself, on your own computer, in about two minutes. No tools, no technical knowledge. This post shows you how.

Who uses a keyboard instead of a mouse

It is a bigger group than most people expect. WebAIM’s guide to keyboard accessibility lists people with motor disabilities, people with tremors, people with little or no use of their hands and blind users, as well as people without any disability who simply find the keyboard faster.

The W3C, which publishes the Web Content Accessibility Guidelines (WCAG), adds another group. Its explanation of the keyboard requirement points out that many assistive tools act like a keyboard: speech input software, sip-and-puff devices, on-screen keyboards and scanning software. If your site works with the keyboard, it usually works with these tools too.

That is why “everything can be done with a keyboard” is a Level A rule in WCAG, the most basic level. It is also part of what the European Accessibility Act expects from many online shops; our post on what the European Accessibility Act means for small online shops explains who is affected.

The keys you need to know

You only need a handful of keys for the test. WebAIM’s guide describes how each one is expected to work:

  • Tab moves forward to the next link, button or form field.
  • Shift + Tab moves back to the previous one.
  • Enter follows a link or presses a button.
  • Space presses a button or ticks a checkbox.
  • Arrow keys move between options in a dropdown or a group of radio buttons.
  • Esc closes a pop-up or a dialog.

That’s it. If a visitor can do everything on your page with these keys, you are in good shape.

The 2-minute test

Use a desktop or laptop computer, and open your site in Chrome or Firefox. Then:

  1. Click once in the browser’s address bar, then press Tab. You are now at the very top of your page.
  2. Keep pressing Tab, slowly. Each press should move a visible highlight, often an outline or a change of colour, to the next link or button.
  3. Watch the order. The highlight should move the way you read the page: through the header and menu, down the main content, then the footer. It should not jump from the logo to the footer and back to the middle.
  4. Open your menu. If your menu has dropdowns or a menu icon, try to open it with Enter or Space and move through the items.
  5. Use your main action. Reach your most important button, such as “Add to cart”, “Book a call” or “Send”, and press Enter. Did it do what a click does?
  6. Try one form. Tab into your contact or newsletter form, type in each field, tick any checkbox with Space and send it.
  7. Press Shift + Tab a few times to make sure you can also go back.

Do this on your homepage and on the one page that earns you money, such as a product page, a booking page or your contact page. That covers most of what matters.

What you are looking for

While you press Tab, ask yourself four questions.

Can I always see where I am? The W3C’s rule on focus visible (Level AA) says every link, button and field needs a visible indicator when it is reached with the keyboard. If you press Tab and nothing seems to happen, the highlight has probably been switched off in the design, something WebAIM specifically warns against. Without it, a keyboard user is like a mouse user with an invisible pointer.

Does the order make sense? WebAIM says the navigation order should be logical and generally follow the visual flow of the page. Jumping around is confusing and makes people miss things.

Can I reach everything I can click? Sometimes a “button” is really just a coloured box with a click action attached. It looks right, but the Tab key skips over it, so keyboard users never get to it. Pay special attention to product option pickers, image galleries, tabs and accordions.

Can I always get out? A keyboard trap is a spot where Tab keeps cycling inside one area, like an embedded map, video or chat widget, and you can’t move on. WebAIM explains that focus moved into a component must be able to leave it using the keyboard alone, and that Esc should usually release it.

Where keyboard users most often get stuck

In our audits, the same places come up again and again.

  • Cookie banners and pop-ups. A pop-up appears, but the keyboard highlight stays on the page behind it. The visitor can’t reach “Accept” or “Close”, and the banner covers the content. WebAIM recommends that modal dialogs keep keyboard focus inside them while they are open.
  • Dropdown menus. Some menus only open when a mouse hovers over them. With a keyboard, the submenu never appears, and every page inside it becomes unreachable. If your menu has many dropdowns, our post on how many menu items is too many may help you simplify it.
  • Long headers with no shortcut. If your header has 30 links, a keyboard user has to press Tab 30 times on every page before reaching the content. A small “Skip to main content” link at the very top solves this. WebAIM describes it as the usual way to let people skip repeated navigation. It can stay hidden until someone presses Tab.
  • Forms with custom fields. Fancy date pickers, star ratings or styled checkboxes sometimes can’t be reached or changed with the keyboard. Standard form fields almost always work.
  • Embedded widgets. Chat bubbles, booking calendars and review widgets from third parties don’t always follow the rules. If one of them traps or skips the keyboard, it is worth asking the provider for an accessible setting.

What to do with what you find

Write down what you noticed, page by page: “Menu dropdown won’t open with Enter”, “No highlight on footer links”, “Can’t close the newsletter pop-up with Esc”. Short, specific notes like these are exactly what your web designer or your site builder’s support team needs.

Many issues are settings rather than rebuilds. Site builders often offer an option to show focus outlines, add a skip link or change how a menu opens. Third-party widgets often have an accessibility mode. And if a theme removes the outline entirely, that is usually a small style change for whoever looks after your site.

A visible highlight also has to be easy to see. If it is a faint grey line on a white page, it may technically be there but practically invisible; our post on colour contrast explains how to judge that.

Your keyboard navigation checklist

  • Pressing Tab from the top of your homepage shows a clear highlight on every link and button
  • The highlight moves in the same order you read the page: header, content, footer
  • Every dropdown menu opens and can be used with Enter, Space or the arrow keys
  • Your main button and one full form work from start to finish without a mouse
  • Cookie banners and pop-ups can be reached, accepted and closed with Tab, Enter and Esc
  • You never get stuck inside a map, video, chat or other widget
  • Long menus have a “Skip to main content” link that appears when you press Tab

More from the blog