Using the keyboard

Blind users and users with motor disabilities must use the keyboard for navigation. These users may use traditional keyboards, but some users may use modified keyboards or other hardware to mimic keyboard functionality.

All content needs to be accessed using the keyboard alone. When using the keyboard only to ensure that all interactions are predictable. Below are some of the keystrokes used to navigate a web site.

  • Tab and Shift+Tab key(s) to navigate towards and backwards through links and form controls.
  • Enter (and sometimes Spacebar) to select an element.
  • Arrow keys are sometimes used for other navigation.
  • ESC to close dialog boxes.
  • Home/End goes to beginning or end.

Visit WebAIM for keyboard techniques.

Info and Relationships

Perceivable
Level A

Benefits: Blind keyboard user

Information, structure, and relationships conveyed through presentation can be programmatically determined or are available in text.

How to pass

Use a screen reader (with your eyes closed):

  • Is all content and functionality available to a screen reader?
  • Does the user have access to all information and features on the page?
  • Can the user complete all tasks independently?

Keyboard

Operable
Level A

Benefits: Keyboard users (typically people with visual and/or motor/physical disabilities).

All functionality of the content is operable through a keyboard interface without requiring specific timings for individual keystrokes, except where the underlying function requires input that depends on the path of the user's movement and not just the endpoints.

How to pass

Fully interact with every interactive aspect of a web page using your keyboard alone - do not use a mouse.

  • Can the user access the full functionality of the page or application using a keyboard alone?
  • Is all information or functionality accessible and operable with a keyboard alone, that would typically be triggered with a mouse?

No keyboard trap

Operable
Level A

Benefits: Keyboard users (typically people with visual and/or motor/physical disabilities).

If keyboard focus can be moved to a component of the page (such as a plugin) using a keyboard interface, then focus can be moved away from that component using only a keyboard interface, and, if it requires more than unmodified arrow or tab keys or other standard exit methods, the user is advised of the method for moving focus away.

How to pass
  • Can the keyboard user be trapped in a subset of the content that can only be exited using a mouse or pointing device?
  • Is there a keyboard mechanism to return focus to the parent window?
  • Can the keyboard function for advancing focus within content (commonly the tab key) exit the subset of the content after reaching the final navigation location?
  • Is help information available for the Web page documents on how to move focus from the content that is not accessibility-supported to the accessibility-supported content via the keyboard?
  • Can the help information be accessed via the keyboard?

Focus order

Operable
Level A

Benefits: Keyboard users (typically people with visual and/or motor/physical disabilities).

If a Web page can be navigated sequentially and the navigation sequences affect meaning or operation, focusable components receive focus in an order that preserves meaning and operability.

How to pass

Tab through the page using only the keyboard.

  • Is the navigation order logical and intuitive?
  • Does the tab order makes sense?

Focus visible

Operable
Level AA

Benefits: Keyboard users (typically people with visual and/or motor/physical disabilities).

Any keyboard operable user interface has a mode of operation where the keyboard focus indicator is visible.

How to pass

Tab through the page using only the keyboard.

  • Can the user always see which element on the page has focus?