How to check and fix color contrast on your website Discover

Keyboard Navigation Testing: A Step-by-Step Guide

Start with a task a visitor came to do: open your contact form, fill it in and send a request. Now put the mouse aside. If you can type into every field but cannot dismiss the cookie banner covering the Submit button, the form is not the only thing you need to test.

Keyboard navigation testing checks whether someone can find, operate and leave each part of a user journey using a keyboard alone. The goal is not to count Tab presses. It is to establish whether a person can tell where they are, make the choices available to a pointer user and finish the task. Here is how to run that test and turn the results into actionable accessibility findings.

Step 1: Choose a journey and define what success looks like

Step 1: Choose a journey and define what success looks like

Pick a journey with a clear outcome, such as changing consent preferences, signing in or requesting a demo. Write the outcome from the visitor’s perspective. “I can decline optional cookies, save my choice and continue reading” is a better test than “the banner buttons receive focus.” The first statement gives you a reason to check what happens after the banner closes.

Record the starting page, browser, operating system, viewport and relevant starting state. For a consent test, use a session without a saved choice. For a form, use a test environment or an approved test submission. Check that your browser and operating system settings allow keyboard navigation to all controls; otherwise, a local setting can look like a website defect.

For the first pass, leave the screen reader off so you can assess the visible keyboard experience on its own. Plan a separate screen reader pass: a control can work with the keyboard yet have a name or state that is unclear when announced.

Step 2: Follow focus forward and backward

Start at the top of the page and press Tab. Focus is the element that will receive your next keyboard action. Before pressing another key, identify it by sight. Continue through the page, then use Shift+Tab to check the route in reverse. If a skip link appears, activate it and verify that the next Tab press takes you into the main content rather than back through the header.

  • Visibility: Can you see the focus indicator against each background? Watch for outlines clipped at the edge of cards and controls hidden behind sticky headers or banners.
  • Order: Does the sequence preserve meaning? In a list of plans, for example, can you tell which plan a focused “Choose” button belongs to before focus moves to the next plan?
  • Reachability: Can you get to the actions you need, including controls that appear on hover? If you seem to have skipped an option inside a grouped control, check its arrow-key behavior before reporting a failure.

Not every visible element should be a Tab stop. A paragraph does not need focus simply because it contains important information. Look for missing functionality or a confusing sequence, not a one-to-one match between Tab presses and items on screen.

Step 3: Operate controls with their expected keys

Step 3: Operate controls with their expected keys

Reaching a control is only half the test. Use it and verify the result. These common interactions are useful starting points:

  • Links: Press Enter and confirm that the intended destination opens.
  • Buttons: Test Enter and Space separately from the same starting state. Each should activate the button, not just change its appearance.
  • Checkboxes: Press Space to change the selection. Check that you can see both the new state and the focus indicator, then reverse the choice.
  • Radio groups: Tab into the group, use arrow keys to move between choices and Tab onward. Check which option remains selected.
  • Tabs: In a horizontal tab list, try Left and Right Arrow. Some tabs display their panel as focus moves; others require Enter or Space. Verify that you can reach the active panel’s controls.

Pay particular attention to custom controls. If a date picker opens, can you choose the date you need and get back to the form? An editable date field may offer another keyboard route. Test whether it accepts the same dates and explains the required format rather than assuming the calendar is the only way through.

Step 4: Check what happens when a dialog opens and closes

Open a modal dialog using the keyboard and note which control opened it. Focus should move into the dialog to a sensible starting point. Tab and Shift+Tab through its contents. While the modal is active, you should not end up operating a link on the page behind it.

Now try leaving. Test the visible close or cancel control and, where expected, Escape. Keeping focus within an open modal is intentional; leaving someone inside with no keyboard way out is a trap. After dismissal, look for focus on the opener or, if that control no longer exists, at a logical next point in the task.

A cookie preferences dialog makes a useful test case. Open it from the footer, change an optional category and save. Can you tell the dialog has closed? Can you reopen it and confirm the saved choice? Pair this interaction check with a cookie audit: operating the preference controls and verifying what the site actually stores are different tests.

Step 5: Complete the form, including an error path

Take the unsuccessful route first. Leave a required field blank, then activate Submit. Without clicking or starting over, find out what went wrong, reach the affected field and correct it. An error summary that receives focus is one useful design; moving focus to the first invalid field with a clear message is another. Judge the outcome rather than insisting on one implementation.

Submit again with valid test data. Look for confirmation and check where the next Tab press takes you. If the form has been replaced, focus should not leave you searching an unrelated navigation menu for evidence that the request was sent.

Repeat the critical path at a narrower viewport if the layout changes. A desktop navigation bar may become a menu with an entirely different opening and closing sequence. Test that sequence with the keyboard rather than carrying the desktop result over to it.

Step 6: Document the barrier and retest the journey

Step 6: Document the barrier and retest the journey

Write each finding so someone else can reproduce it without a walkthrough. Include the environment, starting state, exact keys, expected result, observed result and impact on the task. A short recording can help show a disappearing focus indicator, but the written steps should stand on their own.

Example finding: “With cookie preferences closed, Tab to ‘Cookie settings’ in the footer and press Enter. The dialog appears. Press Tab once. Focus moves to the footer’s privacy link behind the dialog instead of to a preference control. The visitor cannot see which action Enter will trigger.” This gives the developer both a reproduction path and a clear retest target.

Prioritize by consequence: a visitor unable to submit a required request faces a different barrier from one who takes an unnecessary but understandable detour. If a shared component is responsible, assign the fix to its owner and retest it in more than one context. Close the finding only after repeating the original steps and completing the journey beyond the repaired control.

Use the results in your accessibility review

For a WCAG 2.2 review, distinguish the findings you have evidence for. A function that cannot be operated by keyboard relates to Keyboard (2.1.1); an inability to leave a component may relate to No Keyboard Trap (2.1.2). A confusing sequence, a missing visible indicator and a focused control entirely covered by site content raise different questions under Focus Order (2.4.3), Focus Visible (2.4.7) and Focus Not Obscured (Minimum) (2.4.11). A successful keyboard pass is useful evidence for the tested journey, not a declaration that the whole website conforms.

Keep the steps alongside your release checks and rerun them when forms, navigation or consent components change. Corpowid’s accessibility auditing and continuous monitoring can help teams track findings between manual reviews. If you need evidence for an Accessibility Conformance Report, ask about Corpowid’s specialist keyboard-only and screen reader testing. Bring a critical journey and its known failure states so the discussion starts with what your visitors need to accomplish.

Frequently asked questions

Is pressing Tab through a page enough?

No. Tab shows where sequential focus goes. You also need to activate controls, change selections, dismiss overlays, recover from errors and confirm that the task succeeds. Use Shift+Tab as well: the path back matters when someone needs to correct a choice.

Can automated accessibility testing replace a keyboard test?

No. Automated checks can flag issues for investigation, but a tester still needs to judge whether the focus sequence makes sense and whether the journey remains usable after an interaction. Use monitoring to track issues over time and manual testing to verify the experience.

Corpowid is recognized by Gartner

Corpowid has been recognized by Gartner, a leading global research and advisory firm, for our innovation and performance in digital accessibility. These badges reflect our commitment to creating inclusive, AI-powered web experiences.

Have questions about Corpowid?

Let’s connect.

We will get back to you as soon as possible.