Skip to content
Barrierefrei²

Success criterion 2.1.4

2.1.4 Character Key Shortcuts

Level AOperable

When single keys become a problem.

1. What is the goal of this criterion?

Keyboard shortcuts are the Swiss army knife for keyboard fans – handy, fast and efficient. But imagine controlling your computer by voice, and suddenly every spoken word that arrives as text turns into a chain of unwanted commands: messages get archived, deleted or flagged.

So the goal of Success Criterion 2.1.4 is clear: keyboard shortcuts made up of single characters must not be triggered by accident. Users must be able to turn such shortcuts off or remap them – or the shortcuts may only work when the relevant element has focus.

2. What exactly does it require?

Specifically, it’s about keyboard shortcuts that consist only of character keys – letters (upper or lower case), numbers, punctuation or symbols – without additional modifier keys such as Ctrl or Alt.

If such shortcuts are implemented, at least one of the following must be true:

Turn off: a mechanism is available to turn the shortcut off.

Remap: a mechanism is available to change the shortcut so it includes one or more non-printable keys such as Ctrl or Alt.

Active only on focus: the shortcut for a user interface component only works when that component has focus.

Important to understand: it’s not about how many physical keys you press, but whether only printable characters are involved. An upper-case letter or a “?” that requires the Shift key is covered too.

A typical example of “active only on focus”: in a select list, you jump to an entry by typing its first letter – that’s fine, because it only works while the list has focus.

3. Why does it matter for accessibility?

Imagine using speech input to work productively. You switch between dictation and voice commands. A colleague walks in and talks to you – and the speech recognition types their words as letters. Your email app archives messages, jumps between conversations and mutes something, because single letters are mapped to shortcuts.

Single-key shortcuts that can be turned off or remapped make content accessible because they:

  • Help speech input users: dictated text doesn’t trigger accidental commands.
  • Support people with motor impairments: people who tend to hit keys accidentally can turn off problematic shortcuts.
  • Give back control: users can set up shortcuts so they don’t clash with their assistive tools.
  • Help everyone who mistypes: a stray keystroke outside a text field has no unexpected consequences.

The difference from shortcuts with modifiers is crucial: “Ctrl+S” won’t be triggered by dictated text, but a plain “S” will.

4. How to meet the criterion

The good news: implementation is usually straightforward and improves the experience for everyone. Here are some proven tips:

Options for single-key shortcuts:

  • Add a toggle: offer a setting to turn all single-key shortcuts on and off.
  • Allow remapping: let users change shortcuts to combinations with modifiers (e.g. “A” becomes “Alt+A”).
  • Limit them to focus: make shortcuts work only within a focused component, such as a list or a player.
  • Or skip them entirely: the simplest approach is to use shortcuts with modifier keys from the start.

Technical implementation:

In your event listener, check whether shortcuts are enabled, and don’t react while someone is typing in a field:

document.addEventListener('keydown', (event) => {
  // Turn off: the user has disabled single-key shortcuts
  if (!settings.singleKeyShortcuts) return;
  // Don't intercept combinations with Ctrl, Alt or Cmd
  if (event.ctrlKey || event.altKey || event.metaKey) return;
  // Don't react while someone is typing in a field
  if (event.target.closest('input, textarea, select, [contenteditable]')) return;

  if (event.key === 'a') archiveMessage();
});

Offer settings with clear labels, for example:

  • “Enable single-key keyboard shortcuts”
  • “Customize keyboard shortcuts”

Proven approaches:

  • Gmail as an example: its single-key shortcuts can be turned off in the settings.
  • Clear documentation: make it obvious which shortcuts exist and where to turn them off, for example in a help overview.

Ensure alternative ways to operate:

Shortcuts should never be the only way to reach a function. Always offer menus, buttons or other controls that can be reached by keyboard too (see Keyboard).

5. Why this criterion matters for businesses

Success Criterion 2.1.4 is another case where accessibility isn’t an end in itself – it brings real benefits for your business.

1. Reach a wider audience

Speech input isn’t only used by people with disabilities but by many others too – for example when their hands are busy. An application that works well with speech input doesn’t shut these people out.

2. Improve the user experience

Customizable shortcuts make power users happier. People who can set up their familiar key combinations work more efficiently. And people who can turn shortcuts off aren’t annoyed by accidental actions.

3. Demonstrate technical quality

A thoughtful shortcut implementation shows care. It shows that you consider edge cases and support different input methods. That builds trust in your product.

Last but not least: legal requirements. The European Accessibility Act (Directive (EU) 2019/882) has applied since 28 June 2025 to many consumer products and services, such as online shops; in Germany it is implemented by the Barrierefreiheitsstärkungsgesetz (BFSG). The technical benchmark is the harmonised standard EN 301 549, which references WCAG 2.1 Level AA for web content – and 2.1.4 is part of that. Public sector bodies are covered by the Web Accessibility Directive (EU) 2016/2102. This section is general information, not legal advice.

6. The success criterion in the W3C’s words

Success Criterion 2.1.4 Character Key Shortcuts (Level A)

If a keyboard shortcut is implemented in content using only letter (including upper- and lower-case letters), punctuation, number, or symbol characters, then at least one of the following is true:

  • Turn off: A mechanism is available to turn the shortcut off;
  • Remap: A mechanism is available to remap the shortcut to include one or more non-printable keyboard keys (e.g., Ctrl, Alt);
  • Active only on focus: The keyboard shortcut for a user interface component is only active when that component has focus.

In short: single-character keyboard shortcuts must be able to be turned off or remapped to combinations with Ctrl, Alt or similar – or they only work when the related component has focus.

Official explanation from the W3C

The W3C explains every success criterion in depth – with intent, examples and techniques.

Understanding 2.1.4 (opens in a new tab)