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.
The shortcut
Ask: is the problem in the next step, or in something already done? The next step is heading the wrong way: Esc and correct it. Something several turns back was wrong and everything since builds on it: Esc Esc and go back there. Finished for now: Ctrl+C twice.
Wrong direction
Claude starts editing the routes in
app.py, but you only wanted the data model changed. Press Esc.
The common slip is reaching for Ctrl+C to redirect Claude and pressing it twice, which ends the session. Esc is the gentle stop. It keeps everything and simply hands the turn back to you.
Drills
Answer fast — trust the rule.
Claude is editing the wrong file. What is the quickest way to stop it and redirect without losing the conversation?
Five messages ago you gave a wrong instruction, and everything since has built on it. What do you reach for?
What happens when you press Ctrl+C twice at an empty prompt?
In current versions, which key searches back through prompts you typed earlier?
Remember
- Esc interrupts, Esc Esc goes back, Ctrl+C cancels or leaves, Ctrl+R finds old prompts.
- Shortcut: next step wrong means Esc; an earlier turn wrong means Esc Esc.
- Trap: pressing Ctrl+C twice when you only meant to redirect.
