# Esc Esc Shortcut

> Press Esc twice to clear the prompt, or to go back to an earlier point.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** Esc Esc, double Escape, rewind menu shortcut

## Think of it like

It is like the rewind button on a tape. You go back to an earlier spot.

## Definition

Esc Esc is the Claude Code shortcut you get by pressing Esc twice. When the prompt has text, it clears the text and saves it, so Up brings it back. When the prompt is empty, it opens the rewind menu. There you can take the code and the chat back to an earlier point, or sum them up.

## Example

Claude's last two edits broke the build. Leo presses Esc twice on an empty prompt and goes back to before them.

## Why it matters

It is the fast way back when a turn went wrong.

## Common mistake

Pressing it with text in the prompt and waiting for the menu. Clear the prompt first.

## Three principles

- **Text: clears it.** Up brings it back.
- **Empty: rewind menu.** Code and chat.
- **Go back or sum up.** To a point.

## Related terms

- [Esc Shortcut](https://learn.benibix.com/term/ai/esc-shortcut)
- [Claude Code Checkpoint](https://learn.benibix.com/term/ai/claude-code-checkpoint)
- [Up Arrow Shortcut](https://learn.benibix.com/term/ai/up-arrow-shortcut)

## Told apart from

- [Esc vs Esc Esc](https://learn.benibix.com/compare/esc-shortcut-vs-double-esc-shortcut): People think pressing Esc twice is just a firmer way to stop Claude. It does a different job. One Esc stops Claude in the middle of its work and keeps what it has done, so you can steer it. Esc twice opens the rewind menu, where you jump back to an earlier prompt and undo the code, the chat or both.

## Taught in

- [Checkpoints and Control Keys](https://learn.benibix.com/learn/ai-claude-code/checkpoints-and-control-keys): Claude Code, 3/16

---

Source: https://learn.benibix.com/term/ai/double-esc-shortcut
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
