Esc, Esc Esc, Ctrl+C and Ctrl+R
Claude is three files into a change when you realise it misunderstood you. You do not have to wait for it to finish and then untangle the result. A handful of keys let you interrupt, go back, leave, and reuse what you typed before.
The rule
Esc to interrupt, Esc Esc to go back, Ctrl+C to cancel or leave.
- Esc (once) stops Claude at its current step. Nothing is lost: the conversation stays, and so do the changes made so far. Type a correction and it carries on from there in your new direction.
- Esc Esc (twice, on an empty prompt) opens a list of your earlier messages so you can jump back to one. From there you can rewind the conversation — and, thanks to checkpoints, the code Claude changed — to that point. The Rewind lesson covers this in detail.
- Ctrl+C cancels what you are typing or what Claude is generating. Pressed again at an empty prompt, it exits the session. The session is saved, so you can resume it later.
- Ctrl+R searches back through prompts you typed earlier, so a long instruction you use often is a few keystrokes away. The up arrow also steps through recent prompts.
Key bindings differ a little between versions and terminals, and they can be customised. The built-in help lists the ones your version supports.