Guide

Keyboard accessibility testing: a practical guide to WCAG 2.1 AA

By ValleyFill · November 26, 2026

Last checked: November 26, 2026. The success criteria, glossary definitions and conformance requirements quoted below are from Web Content Accessibility Guidelines (WCAG) 2.1, W3C Recommendation of 06 May 2025 (the same text is at the dated URL in the source list). The Understanding documents, Techniques index, WAI Easy Checks, WAI-ARIA Authoring Practices Guide (APG) pages and WAI Carousels Tutorial pages in the source list were opened on November 26, 2026. 1 12 13 14 15 17 18

Many people use a site without a mouse. They move from control to control with the Tab key, type into fields, and press Enter, Space, arrow keys or Escape to get work done. Some use a physical keyboard. Others use a keyboard interface: speech input, an on-screen keyboard, sip-and-puff software, or another tool that sends keystrokes. If a control works only with a pointer, or if keyboard focus disappears or gets stuck, those people can be shut out of a task a mouse user finishes in a moment. 2 9 12 18

This article looks at four WCAG 2.1 success criteria that come up in a keyboard test: 2.1.1 Keyboard, 2.1.2 No Keyboard Trap, 2.4.3 Focus Order and 2.4.7 Focus Visible. It quotes the normative text, including the exceptions and notes, and then walks through practical checks a site owner can run with no extra tools. The walk-through and the component checks are our suggested procedure, informed by WAI Easy Checks and the other W3C documents cited below. They are not a WCAG conformance test and not a complete audit. Following these steps does not by itself make a site conformant with WCAG 2.1 or any law; test with real users and assistive technology. 2 3 4 5 18

The four success criteria

WCAG 2.1 groups success criteria into Level A, Level AA and Level AAA. Of the four criteria in this article, 2.1.1, 2.1.2 and 2.4.3 are Level A, and 2.4.7 is Level AA. That does not put the first three outside an AA reading. The conformance section of WCAG 2.1 states: “For Level AA conformance, the web page satisfies all the Level A and Level AA success criteria, or a Level AA conforming alternate version is provided.” 1 2 3 4 5 7

2.1.1 Keyboard (Level A)

Success Criterion 2.1.1 Keyboard (Level A) states: “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.” 2

Note 1: “This exception relates to the underlying function, not the input technique. For example, if using handwriting to enter text, the input technique (handwriting) requires path-dependent input but the underlying function (text input) does not.” 2

Note 2: “This does not forbid and should not discourage providing mouse input or other input methods in addition to keyboard operation.” 2

WCAG 2.1 defines functionality as “processes and outcomes achievable through user action,” and a keyboard interface as an “interface used by software to obtain keystroke input.” Note 2 on that definition says: “Operation of the application (or parts of the application) through a keyboard-operated mouse emulator, such as MouseKeys, does not qualify as operation through a keyboard interface because operation of the program is through its pointing device interface, not through its keyboard interface.” 9 10

Our reading of the path-dependent exception, next to Understanding 2.1.1, is that it is narrow. Understanding 2.1.1 says the phrase is “included to separate those things that cannot reasonably be controlled from a keyboard.” Freehand drawing and watercolor painting are its examples of path-dependent input; drawing straight lines, regular geometric shapes, re-sizing windows and dragging objects to a location “when the path to that location is not relevant” are not. It also says MouseKeys “would not satisfy this success criterion because it is not a keyboard equivalent to the application; it is a mouse equivalent (i.e., it looks like a mouse to the application).” 12

Understanding 2.1.1 also says the criterion “does not require that every visible control that can be activated using a mouse or touchscreen must also be focusable and actionable using the keyboard.” “The normative requirement is only that there must be a way for keyboard interface users to perform the same, or comparable, actions and to operate the content.” A later note says authors are encouraged to follow platform keyboard conventions, and that “deviating from these conventions does not fail the normative requirement of this success criterion,” giving a custom button that responds only to Enter, not also to Space. We still suggest trying both Enter and Space and recording what happens. That suggestion is ours, not a 2.1.1 rule. 12

2.1.2 No Keyboard Trap (Level A)

Success Criterion 2.1.2 No Keyboard Trap (Level A) states: “If keyboard focus can be moved to a component of the page 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.” 3

The criterion has this note: “Since any content that does not meet this success criterion can interfere with a user's ability to use the whole page, all content on the web page (whether it is used to meet other success criteria or not) must meet this success criterion. See Conformance Requirement 5: Non-Interference.” Section 5.2.5, Conformance Requirement 5: Non-Interference, names 2.1.2 among the criteria that “apply to all content on the page, including content that is not otherwise relied upon to meet conformance, because failure to meet them could interfere with any use of the page.” 3 8

Understanding 2.1.2 says a common problem is “when multiple formats are combined within a page and rendered using plug-ins or embedded applications, or when custom components and widgets are not implemented with keyboard users in mind.” Restricting focus to a subsection, “for example, when the user is inside a modal dialog or popover,” “does not fail the requirements of this criterion, as long as the user knows how to "untrap" the focus and leave that component.” The document says WCAG 2.1 “does not define what constitutes a "standard exit method"”; “Generally, in most environments with a physical keyboard, pressing the Esc key is a commonly used "standard exit method", but other platform-specific methods may be available.” If leaving takes a different method, “content can still pass this criterion provided that the user is advised how they can untrap focus using their keyboard interface.” 13

2.4.3 Focus Order (Level A)

Success Criterion 2.4.3 Focus Order (Level A) states: “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.” “Navigated sequentially” is defined as “navigated in the order defined for advancing focus (from one element to the next) using a keyboard interface.” 4 11

Understanding 2.4.3 says there may be more than one logical order, and that focus order “does not necessarily need to follow the visual layout of the web page, as long as the order in which elements receive focus is logical, and the hierarchy and relationship of content implied by the visual presentation is preserved.” The criterion “does not specify what should or should not receive focus, but rather assesses the order in which elements receive focus.” A failing example in that document is a form whose tab order “skips between fields in different sections of the form, so that focus moves from the name field to a checkbox, then to the street address, then to another checkbox.” 14

2.4.7 Focus Visible (Level AA)

Success Criterion 2.4.7 Focus Visible (Level AA) states: “Any keyboard operable user interface has a mode of operation where the keyboard focus indicator is visible.” Understanding 2.4.7 says user agents “may optimize when the focus indicator is shown, such as only showing it when a keyboard is used. Authors are responsible for providing at least one mode of operation where the focus is visible. In most cases there is only one mode of operation so this success criterion applies. The focus indicator must not be time limited: when the keyboard focus is shown, it must remain visible.” 2.4.7 itself does not set a contrast ratio. Understanding 2.4.7 notes that focus indicators “are also subject to Success Criterion 1.4.11 Non-text Contrast (Level AA)” when they are provided as non-text content. We did not reopen Understanding 1.4.11 for this article and do not re-quote it here. Our color contrast guide walks through that related criterion. 5 15

A keyboard walk-through with no extra tools

WAI’s Easy Checks – A First Review of Web Accessibility (updated 9 August 2023) includes a section titled “Keyboard access and visual focus.” Its scope statement is: “These checks cover just a few accessibility issues and are designed to be quick and easy, rather than definitive. A web page could seem to pass these checks, yet still have significant accessibility barriers. More robust assessment is needed to evaluate accessibility comprehensively.” The procedure below follows that page’s Tab-key walk-through and then adds component checks of our own. It is still only a first look. 18

Easy Checks says you can do most of its checks with a browser and that you do “not need to download special tools.” Our suggestion is the same: use a desktop browser in which the Tab key moves from control to control. Easy Checks also includes a step for turning on full keyboard access in Mac system settings, and it names those settings as they appeared when that page was last updated. The names of system settings can change; use the current keyboard settings on your computer if Tab never reaches buttons or links. 18

Our suggested starting procedure, which follows Easy Checks closely: 18

  1. Click in the browser’s address bar, put the mouse aside, and do not use it again for this pass. Easy Checks says: “Click in the address bar, then put your mouse aside and do not use it.” 18
  2. Press Tab to move forward through the page, and Shift+Tab to move backward. 18
  3. When focus lands on a control, try the keys that usually operate it: Enter and Space for buttons and links, arrow keys inside a menu, list, tab set, slider or radio group, and Escape to dismiss a dialog, menu or overlay if one is open. Trying both Enter and Space is our suggestion, not a 2.1.1 rule. 12 18
  4. Keep going until you have moved through the header, navigation, main content, forms, footer and any widgets you can reach.

Easy Checks asks you to check that you can “tab to all the elements, including links, form fields, buttons, and media player controls”; that you can “tab away from all elements that you can tab into” (a common problem is “the keyboard focus gets caught in media controls and you cannot get out; it's called the "keyboard trap"”); that “the tab order follows the logical reading order (e.g., for left-to-right languages: top to bottom, left to right) in sequence”; that “the focus is clearly visible as you tab through the elements, that is, you can tell which element has focus”; and that “you can do everything with the keyboard; that is, you don't need the mouse to activate actions, options, visible changes, and other functionality.” It also notes a common problem: “some functionality is available only with mouse hover, and is not available with keyboard focus.” WCAG 2.4.3, quoted above, tests whether the order preserves meaning and operability, and Understanding 2.4.3 says that order does not have to match the visual layout in every case. 4 14 18

The APG practice Developing a Keyboard Interface is W3C guidance for ARIA widgets, not a success criterion. It describes a common convention: “the tab and shift + tab keys move focus from one UI component to another while other keys, primarily the arrow keys, move focus inside of components that include multiple focusable elements.” If a control set looks like one widget — a menu, a tab list, a radio group — our suggestion is to try the arrow keys once Tab has landed on it. 19

Menus, dialogs, forms and other widgets

Not every “menu” on a website is the same kind of widget, and the keys that operate it depend on how it was built. That distinction is ours; the documents below describe particular patterns. The APG Menu and Menubar Pattern describes a desktop-style menu in which “Tab and Shift + Tab do not move focus among the items in the menu.” Arrow keys move among the items. Enter, when focus is on a menuitem that has a submenu, “opens the submenu and places focus on its first item,” and otherwise “activates the item and closes the menu.” The APG is not a WCAG success criterion. A site does not fail 2.1.1 merely because it uses a different, still keyboard-operable pattern. 2 21

Many site headers are closer to the APG Disclosure (Show/Hide) Pattern: a button that shows or hides a list of links. For that pattern, when the disclosure control has focus, Enter “activates the disclosure control and toggles the visibility of the disclosure content,” and Space does the same. The links inside, once shown, are often reached with Tab. Our suggestion is to test the control you actually have: tab to it, open it with Enter or Space, reach each item without a mouse, and leave with Tab, Shift+Tab or Escape if Escape dismisses it. 22

Easy Checks flags a drop-down problem: check that “after you tab into a drop-down list, you can use the arrow keys to move through all the options without triggering an action.” “A common problem for drop-downs used for navigation is that as soon as you arrow down, it automatically selects the first item in the list and goes to a new page — you cannot get to other items in the list.” In our walk-through, a menu or navigation fail looks like a menu that opens only on hover, items you can see but cannot reach from the keyboard, or a list that navigates away before you can reach the later options. 2 18

Understanding 2.1.2’s modal example describes focus staying inside the dialog while it is open, with tabbing wrapping from the last control to the first (the focus cycle “might still include user agent controls”), and the dialog dismissed by Cancel, OK or the Esc key. As quoted earlier, that restriction “does not fail the requirements of this criterion, as long as the user knows how to "untrap" the focus and leave that component.” Understanding 2.4.3 covers the focus-order side: when the trigger is activated, “a dialog opens and focus is set within the dialog. As long as the dialog is open, all web page content outside the dialog becomes inert and cannot receive focus (though, depending on implementation, the focus cycle might still include user agent controls). When the dialog is dismissed, focus returns to the button or the element following the button.” It also describes a non-modal pattern in which “the interactive elements in the dialog are inserted in the focus order immediately after the button.” 13 14

The APG Dialog (Modal) Pattern is authoring guidance, not a success criterion. It says that when a dialog opens, “focus moves to an element inside the dialog”; Tab and Shift+Tab cycle among tabbable elements inside the dialog and wrap at the edges; Escape “Closes the dialog”; and when a dialog closes, “focus returns to the element that invoked the dialog unless either” that element no longer exists or the workflow makes a different placement more logical. Our suggested modal test: open the dialog from the keyboard, confirm focus has moved into it, tab all the way around, confirm you can see focus, operate the controls, close it with the provided button and with Escape if that works, and confirm focus comes back to a sensible place. A fail, in our terms, is a dialog you cannot open or close from the keyboard, a focus loop you cannot leave and were not told how to leave, or focus that stays on the page behind a modal dialog. 5 13 20

Forms often show all four criteria at once. Labels, instructions and error messages are covered in our guide to accessible form labels and error messages. This section is only about operating the form from the keyboard. Easy Checks says to “Check that all form controls are keyboard accessible by following the keyboard access checks above, including checking that you can get to all items in any drop-down lists.” Our suggestion is to use Tab and Shift+Tab between fields, arrow keys inside a radio group or select list, Space to check a checkbox, and Enter to submit when you are ready. A form fail, in our terms, looks like a custom selector that opens only with a click, a date picker you cannot operate with arrows, a submit control you cannot reach from the keyboard and cannot activate by pressing Enter in a field, or a tab order that jumps between unrelated sections, in the pattern Understanding 2.4.3 gives as a failing example. 4 14 18

Skip links, carousels and embedded widgets

Skip links are not one of the four criteria named at the start of this article, but they come up as soon as you press Tab on many sites. They relate to Success Criterion 2.4.1 Bypass Blocks (Level A), which states: “A mechanism is available to bypass blocks of content that are repeated on multiple web pages.” Like 2.1.1, 2.1.2 and 2.4.3, this criterion is Level A and is therefore part of Level AA conformance as quoted above. A skip link is one such mechanism, not the only one. Understanding 2.4.1 says: “It is not the intent of this success criterion to require authors to provide methods that are redundant to functionality provided by the user agent. Most web browsers provide keyboard shortcuts to move the user focus to the top of the page, so if a set of navigation links is provided at the bottom of a web page providing a "skip" link may be unnecessary.” 6 7 16

Our suggested check, if a skip link is present: it is typically among the first things you reach with Tab, often becoming visible when it receives focus. Activate it with Enter and see whether focus moves to the main content, and whether the next Tab stays in that content rather than bouncing back into the repeated block. If there is no skip link, that is not by itself a 2.4.1 failure in the terms of the criterion, which asks for a mechanism, not for one particular control. Understanding 2.4.1’s e-commerce example is “a link above the list enables users to skip the filters and get to the product results quickly.” 6 16

The WAI Carousels Tutorial (status: Updated 13 April 2017, first published May 2015) is W3C tutorial guidance, not a success criterion. It says, under “What makes a carousel accessible?”: “Users must be able to pause carousel movement because it can be too fast or distracting, making text hard to read.” “All functionality, including navigating between carousel items, must be operable by keyboard.” “The keyboard position ("focus") is managed in a reasonable and comprehensible fashion.” The tutorial’s Functionality page says: “Provide buttons to allow users to switch back and forth between items,” and: “When the carousel advances automatically, users should not be drawn away from their current place in the page. Also, do not move keyboard focus when the previous or next buttons are used.” A later section on item-picker buttons says: “When users select an item with those navigation buttons, the focus should be set on the selected item.” Those two sentences describe different controls. We are not collapsing them into one rule. 24 25

The APG Carousel (Slide Show or Image Rotator) Pattern is later W3C guidance for the same kind of widget. If the carousel auto-rotates, “automatic slide rotation stops when any element in the carousel receives keyboard focus. It does not resume unless the user activates the rotation control.” “Activating the rotation control, next slide, and previous slide do not move focus.” If a rotation control is present, the APG says it is “the first element in the Tab sequence inside the carousel” and “It is essential that it precede the rotating content so it can be easily located.” Our suggested carousel test: tab into the carousel, confirm you can see focus, find a way to pause movement if it rotates, move among slides, reach any picker controls, and tab out again. A fail, in our terms, looks like slides that change only by swiping or hovering, rotation that cannot be paused from the keyboard, or focus that jumps every time a slide changes. 2 5 23

Understanding 2.1.2 flags “multiple formats” “combined within a page and rendered using plug-ins or embedded applications” as a common source of keyboard traps. Easy Checks calls out media player controls as a place people often cannot tab to, or cannot tab away from. Our suggestion is to treat every embedded piece — a video player, a map, a social or payment embed, a third-party form, a calendar, a rich-text editor — as its own component. Tab into it, try to operate it, and tab out. If Tab does not leave, try Escape and unmodified arrow keys. If leaving requires another combination, look for advice before or inside the widget, in the terms 2.1.2 uses: “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.” Understanding 2.1.2’s puzzle-applet example provides “instructions describing the keystroke used to exit the applet” “prior to the applet as well as within the applet itself.” Because of Conformance Requirement 5: Non-Interference (section 5.2.5), a trap inside an embed is not isolated: 2.1.2 applies to “all content on the web page (whether it is used to meet other success criteria or not).” 2 3 8 13 18

What a pass and a fail look like

The Techniques for WCAG 2.1 index, updated 11 May 2026, says: “Techniques are examples of ways to meet Web Content Accessibility Guidelines (WCAG). They are not required to meet WCAG. Content can satisfy the normative requirements of WCAG even if it does not use any of the documented techniques.” Failure techniques “show examples of how content can fail particular WCAG success criteria. However, content may still satisfy those criteria if it includes equivalent/alternative content or functionality that does meet the normative requirements.” Understanding documents list sufficient techniques and failures for each criterion. We have not opened those individual technique pages, and we do not treat them as required methods. 17

Our recap, for this no-tools pass only: 2 3 4 5 18

Those are observations from this walk-through, not a conformance claim for the whole site. If something fails this pass, fix that path and run it again. If everything seems to work, that is useful information, not a finding that the site conforms. Easy Checks says a page “could seem to pass these checks, yet still have significant accessibility barriers.” For a wider walk through the Level AA criteria, see WCAG 2.1 AA in plain language, the accessibility standards guide and laws and guidelines. 18

If you want to look at your own pages, our free tools, including the color contrast checker and the readability checker, and the Title II Snapshot are a place to start. For broader testing, see what ValleyFill offers. Our free tools and automated audits can help you find some issues to fix. They are not legal advice or a compliance guarantee.

About us and this post. ValleyFill sells automated accessibility audits and monitoring, and the Title II Snapshot is our own automated tool. Automated tools, ours included, cannot make a site conformant on their own; they find only some barriers. A keyboard walk-through of the kind described here is done by a person, with a keyboard. Our tools do not replace that pass, and they cannot tell you whether a custom menu, dialog, carousel or embedded widget can be operated and left from the keyboard.

Sources

Each source was opened and checked on November 26, 2026. The success criteria, glossary definitions and conformance requirements are quoted from the WCAG 2.1 recommendation. The Understanding documents, Techniques index, Easy Checks, APG pages and WAI tutorials are W3C guidance on interpreting and implementing those criteria; they are not themselves success criteria.

  1. Web Content Accessibility Guidelines (WCAG) 2.1, W3C Recommendation, 06 May 2025 (same text at the dated URL https://www.w3.org/TR/2025/REC-WCAG21-20250506/).
  2. WCAG 2.1 Success Criterion 2.1.1 Keyboard (Level A). W3C Recommendation, 06 May 2025.
  3. WCAG 2.1 Success Criterion 2.1.2 No Keyboard Trap (Level A). W3C Recommendation, 06 May 2025.
  4. WCAG 2.1 Success Criterion 2.4.3 Focus Order (Level A). W3C Recommendation, 06 May 2025.
  5. WCAG 2.1 Success Criterion 2.4.7 Focus Visible (Level AA). W3C Recommendation, 06 May 2025.
  6. WCAG 2.1 Success Criterion 2.4.1 Bypass Blocks (Level A). W3C Recommendation, 06 May 2025.
  7. WCAG 2.1 section 5.2.1 Conformance Level. W3C Recommendation, 06 May 2025.
  8. WCAG 2.1 section 5.2.5, Conformance Requirement 5: Non-Interference. W3C Recommendation, 06 May 2025.
  9. WCAG 2.1 definition: keyboard interface. W3C Recommendation, 06 May 2025.
  10. WCAG 2.1 definition: functionality. W3C Recommendation, 06 May 2025.
  11. WCAG 2.1 definition: navigated sequentially. W3C Recommendation, 06 May 2025.
  12. Understanding Success Criterion 2.1.1: Keyboard. Updated 04 October 2026.
  13. Understanding Success Criterion 2.1.2: No Keyboard Trap. Updated 18 May 2026.
  14. Understanding Success Criterion 2.4.3: Focus Order. Updated 04 October 2026.
  15. Understanding Success Criterion 2.4.7: Focus Visible. Updated 04 October 2026.
  16. Understanding Success Criterion 2.4.1: Bypass Blocks. Updated 09 February 2026.
  17. Techniques for WCAG 2.1 (index). Updated 11 May 2026.
  18. WAI, Easy Checks – A First Review of Web Accessibility. Updated 9 August 2023.
  19. WAI-ARIA Authoring Practices Guide, Developing a Keyboard Interface. Opened 26 November 2026.
  20. WAI-ARIA Authoring Practices Guide, Dialog (Modal) Pattern. Opened 26 November 2026.
  21. WAI-ARIA Authoring Practices Guide, Menu and Menubar Pattern. Opened 26 November 2026.
  22. WAI-ARIA Authoring Practices Guide, Disclosure (Show/Hide) Pattern. Opened 26 November 2026.
  23. WAI-ARIA Authoring Practices Guide, Carousel (Slide Show or Image Rotator) Pattern. Opened 26 November 2026.
  24. WAI Carousels Tutorial (index). Status: Updated 13 April 2017 (first published May 2015).
  25. WAI Carousels Tutorial: Functionality. Status: Updated 13 April 2017 (first published May 2015).

Related ValleyFill guides

This is general information, not legal advice. ValleyFill is not a law firm. For advice about your situation, talk to a lawyer.

All articles