press_key — Claude Code prompt for interface keys
press_key — a prompt for Claude Code presses navigation and editing keys on the current screen. Its result describes the interface change and reports a new location when the screen changes.
Apache-2.0 ★ 9,488 updated 2026-11-16
.claude/commands/press_key.mdWhat press_key does
The prompt presses a navigation or editing key on the current screen. A key can be supplied by name or numeric code. Requests for volume, power, home, recents, search, assistant, camera, or media keys are rejected.
The result reports an effect: done means a clear interface change; smallchange covers a focus move, a toggle, a small element change, or a screen that may still be loading; no_effect means nothing visibly changed; place_changed gives the new location in effect.to. After smallchange, inspect the screen. After no_effect, try a different approach rather than pressing the key again.
What it helps with
- press a navigation key on the current screen
- send an editing key by name or code
- check whether a key press changed the interface
Example prompts for the agent
- Press Enter on the current screen.
- Move focus with Tab and report the visible change.
- Press keycode 13 and check the result.
How to install press_key
Manually: put the files in place
.claude/commands/press_key.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about press_key
How do I install press_key in Claude Code?
Add the prompt file at .claude/commands/press_key.md.
What does press_key do?
It presses navigation or editing keys on the current screen and reports the effect on the interface.
Which keys does press_key reject?
It rejects volume, power, home, recents, search, assistant, camera, and media keys.
Source text
press_key.md · Apache-2.0
Press a navigation or editing key on the current screen. Allowed: {{keys}} (by name or numeric keycode). Volume, power, home, recents, search, assistant, camera and media keys are rejected. The result's effect says what the action did to the interface: done (a clear change), small_change (only focus, a toggle or one or two elements changed, or it may still be loading: check it), no_effect (nothing in the interface changed: try another way instead of repeating) or place_changed (now somewhere else, given in effect.to).
© wangzan101 · Apache-2.0 · wangzan101/Mika