# How to trace a visitor through a mobile menu with just a keyboard

- Link: https://techbrand.io/2026/11/29/test-mobile-menu-keyboard-navigation/
- Published: 2026-11-29T10:00:00+00:00
- Author: Techbrand

# How to trace a visitor through a mobile menu with just a keyboard

Open your mobile menu, put the mouse aside and press Tab. Can you see which link
will respond to Enter? A menu can slide into view while keyboard focus stays behind
it. To find out, pick one destination a visitor needs and follow every keypress 
from the menu button to that page.

A keyboard check makes this problem easy to describe and repeat. Give the visit 
a start page and a destination you can verify. For example, start on a fictional
studio’s Classes page and look for Timetable. The whole check can be done in the
browser you already use.

## Set the browser up at a narrow width

Narrow your browser window until the site uses its mobile navigation. If the window
cannot go narrow enough, use the responsive viewport in your browser’s developer
tools. Pick one width where the menu definitely changes, for example 390 CSS pixels,
and note it with the browser name and version. Load the page fresh. Press Tab until
focus reaches the page, then follow the indicators with your eyes. A desktop browser
at a narrow width gives you a repeatable layout test. A phone with a paired keyboard
is a separate check if you need coverage of that device. [Chrome DevTools device mode](https://developer.chrome.com/docs/devtools/device-mode)

## Follow focus with the menu closed and open

Start with the menu closed. Tab to the Menu button and check that you can tell it
has focus. Continue beyond it once and check that the links in the hidden panel 
stay out of the tab sequence. Go back to Menu with Shift+Tab. Open it with Enter,
then try Space on a fresh pass. Check which element is focused as the panel appears,
then press Tab through the visible choices. Reverse direction with Shift+Tab. Each
stop should follow a sensible route, and you should be able to see which control
will respond. A fixed header or panel edge can hide that indicator even when the
control itself works. [W3C visibility guidance](https://www.w3.org/WAI/WCAG22/Understanding/focus-visible.html)

## Check how a visitor gets out

A simple expanding navigation menu lets the visitor proceed through ordinary page
focus. In the W3C example, Escape closes the open section and returns focus to the
control. If the mobile menu is a modal overlay that blocks the page underneath, 
follow the modal pattern instead. While it is open, focus should stay within it,
with a keyboard-accessible close control and Escape behaviour. After dismissing 
either pattern in this test, check where focus lands and whether you can continue
the visit without starting over. [W3C disclosure navigation example](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/examples/disclosure-navigation/)
and [modal dialog pattern](https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/)

## Confirm where the link takes you

Open Menu again and tab to Timetable. Press Enter. Confirm the destination by checking
the heading, URL or intended section. For an in-page jump, check that the next Tab
continues logically near the destination. Record the actual path you observed. “
At 390 px, Enter opens Menu. The next Tab lands behind the overlay on Search. Timetable
is never reached” gives a developer a place to start. That example is fictional,
but the details are the ones to record when you meet a real problem.

Choose one page visitors arrive on directly and one destination they genuinely need.
Run this route once and hand over the first failing keypress with the expected focus
target, actual focus target and a screenshot. Repeat those same steps after it is
fixed.
