# 15.27 Never trap keyboard focus

> Chapter 15, Accessibility and input. Section: Focus, hover, and pointer. Guide: https://www.designguide.dev/md/15-accessibility-and-input.md#never-trap-keyboard-focus

Hard

**Rule:** Never trap keyboard focus, and let Esc leave every layer.

**Why:** Keyboard, switch, and voice users send keys, so a trap or a mouse-only function locks them out.

- Never make a control that only a pointer can reach.
- Every action works by keyboard: [Rule 12.15](https://www.designguide.dev/r/make-every-action-work-with-the-keyboard.md). Focus order: [Rule 12.16](https://www.designguide.dev/r/order-tab-by-the-visual-order.md).

**Picture:** Figure: Tab reaches the button. Esc leaves a layer. Nothing traps focus.

**See:** [12.15 Make every action work with the keyboard](https://www.designguide.dev/r/make-every-action-work-with-the-keyboard.md), [12.16 Order Tab by the visual order](https://www.designguide.dev/r/order-tab-by-the-visual-order.md)
