Any transient overlay, dropdown menu, modal dialogue, or tooltip triggered by user interaction must be dismissible via the Escape key without moving the pointer.
Why?
Implementation Checklist: Listen for keydown where e.key === 'Escape'. Close the active overlay, clean up event listeners, and return focus cleanly.
Level 1 · Accessible interaction basics