---
url: /docs/guide/usage/linter/rules/jsx_a11y/no-access-key.md
---

### What it does

Enforces that the `accessKey` prop is not used on any element to avoid complications with keyboard commands used by a screen reader.

### Why is this bad?

Access keys are HTML attributes that allow web developers to assign keyboard shortcuts to elements.
Inconsistencies between keyboard shortcuts and keyboard commands used by screen readers and keyboard-only users create accessibility complications so to avoid complications, access keys should not be used.

### Examples

Examples of **incorrect** code for this rule:

```jsx
<div accessKey="h" />
```

Examples of **correct** code for this rule:

```jsx
<div />
```

## How to use

## Version

This rule was added in v0.0.21.

## References
