Skip to main content

Keyboard Shortcuts

A complete reference of keyboard shortcuts available in Claude Code.

Essential Shortcuts

ShortcutAction
EnterSend message / confirm
EscapeCancel current action / dismiss
Ctrl+CInterrupt Claude (stop generation)
Ctrl+DExit Claude Code (end session)

Input & Editing

ShortcutAction
Shift+EnterNew line (multi-line input)
Up ArrowPrevious message in history
Down ArrowNext message in history
Ctrl+AMove cursor to beginning of line
Ctrl+EMove cursor to end of line
Ctrl+UClear current input line
Ctrl+WDelete word before cursor

Permission Prompts

ShortcutAction
y or EnterAccept / approve the action
nReject / deny the action
aAlways allow this tool for the session
ShortcutAction
Ctrl+LClear the screen
TabAutocomplete slash commands

Tips

  • Multi-line input: Press Shift+Enter to add a new line without sending the message. Press Enter to send when you are done.
  • Interrupt safely: Ctrl+C stops Claude mid-response without ending the session. Use it if Claude is going down the wrong path.
  • Quick exit: Ctrl+D exits immediately. You can also type /exit.
  • History navigation: Use Up Arrow to recall previous prompts and edit them before resending.