Each accesskey value must be unique on the page
If you use the accesskey attribute, give every element its own key. This is a best practice, not a WCAG requirement: a key shared by two elements makes the shortcut unreliable for keyboard users.
| Rule ID | accesskeys |
|---|---|
| Impact | Serious |
| Success criterion | Best practice, not a WCAG requirement |
| Needs a change in the website’s code |
Example
<nav>
<a href="/search" accesskey="s">Search</a>
<a href="/shop" accesskey="s">Shop</a>
</nav>The shortcut for S opens Search in one browser, Shop in another, or only moves focus between them.
<nav>
<a href="/search" accesskey="s">Search</a>
<a href="/shop" accesskey="p">Shop</a>
</nav>The S shortcut always opens Search and the P shortcut always opens Shop.
Why it matters
Access keys are meant to save effort for people who rely on the keyboard: users with motor disabilities, repetitive strain injury or tremor, and some screen reader users who learn a site's shortcuts. A shortcut only helps if it is predictable.
When two elements share a key, browsers disagree on what to do. Some activate the first element, some the last, and some only move focus from one to the next without activating anything. The user presses the key and something unexpected happens, or nothing seems to happen at all.
Access keys have other weaknesses too: the modifier keys differ between browsers and operating systems, and a key can clash with a browser, screen reader or magnifier command. Many teams decide not to use them.
How to fix it
Keep the shortcuts. Give each element a different key, and keep the list short so people can remember it:
<a href="/search" accesskey="s">Search</a>
<a href="/basket" accesskey="b">Basket</a>
<a href="/help" accesskey="h">Help</a>
Then tell people about them, for example on your accessibility statement page, since the browser does not show them anywhere.
Avoid clashes. Stay away from keys that browsers and assistive technology already use, such as the letters for the File, Edit and View menus. Digits are a common safer choice.
Drop them. If nobody asked for shortcuts, removing the accesskey attributes is often the cleanest fix. Good headings, landmarks and a skip link give keyboard and screen reader users faster ways to move around without memorising keys:
<a href="/search">Search</a>
Generated markup. If a CMS theme or plugin adds the attributes, check its settings, or fix the template once rather than each page.
Checklist
- List every accesskey on the page and remove duplicates.
- Avoid keys used by browsers and screen readers.
- Document the shortcuts you keep where users can find them.
- Consider removing access keys nobody needs.
How the check works
The check collects every element with an accesskey attribute, hidden ones included, and compares the values without regard to letter case. When two or more elements share a value, the first one is reported and the others are listed with it. The check cannot tell whether a key clashes with a browser or screen reader command: test that by hand in the browsers your visitors use.
Resources
- Developing a keyboard interface W3C WAI
Updated October 27, 2026