# Ctrl+C Shortcut

> The key that stops a task, clears the prompt, or quits Claude Code.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** Ctrl+C, Ctrl+C in Claude Code, interrupt key

## Think of it like

It is like a stop button. Press it once to stop. Press it twice to leave.

## Definition

Ctrl+C is the Claude Code shortcut that stops what is running. If Claude is working, it stops the turn. If nothing is running, the first press clears what you typed, and a second press quits. Pressing Up brings a cleared draft back. Ctrl+C is fixed, so it cannot be moved to another key.

## Example

Leo sends a prompt and sees Claude edit the wrong file. He presses Ctrl+C, and the work stops.

## Why it matters

It always works, so you can stop Claude at any time.

## Common mistake

Pressing it twice to clear the prompt. The second press quits Claude Code.

## Three principles

- **Stops a running task.** Mid-turn.
- **Clears, then quits.** When idle.
- **Cannot be rebound.** It is fixed.

## Related terms

- [Esc Shortcut](https://learn.benibix.com/term/ai/esc-shortcut)
- [Ctrl+D Shortcut](https://learn.benibix.com/term/ai/ctrl-d-shortcut)
- [Up Arrow Shortcut](https://learn.benibix.com/term/ai/up-arrow-shortcut)
- [keybindings.json](https://learn.benibix.com/term/ai/keybindings-json-file)

## Told apart from

- [Esc vs Ctrl+C in Claude Code](https://learn.benibix.com/compare/esc-shortcut-vs-ctrl-c-shortcut): People think Esc and Ctrl+C both just stop Claude. Esc stops the turn, keeps the work so far, and sends anything you queued. Ctrl+C stops it too, but with nothing running it clears your prompt, and a second press quits Claude Code. Use Esc to steer, and Ctrl+C when you want out.

## Taught in

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

![What Esc, Esc twice, Ctrl+C and Ctrl+D each do, when Claude is working and when the prompt is idle.](https://learn.benibix.com/diagrams/claude-code-stop-keys.svg)

---

Source: https://learn.benibix.com/term/ai/ctrl-c-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.
