Codex prints "? for shortcuts" under every prompt, and Claude Code opens the same kind of panel when you press ? on an empty input. Most of us never press it, then type the same correction three times while the agent keeps going the wrong way.
These are the keys I'd learn first if I were starting over with both tools on a Mac. Every one was checked against the official Claude Code interactive mode docs and the Codex CLI commands reference in December 2026. One Mac note before you start: Claude Code's Option+P and the Alt word-jump keys need "Option as Meta" turned on in your terminal settings.
1. Esc stops Claude without throwing away the work
A single Esc interrupts the current response or tool call mid-turn, and Claude keeps what it already did. That makes it the right key for "wait, not that file", where Ctrl+C is the one that clears or exits.
2. Esc Esc on an empty prompt opens rewind (Claude Code)
With text in the input, double Esc clears it and saves the draft to history so Up brings it back. With the input empty, the same keys open the rewind menu, where you can restore code and conversation from an earlier point.
3. Esc Esc in Codex edits your last message
In Codex, pressing Esc twice with an empty composer lets you edit your previous message and forks the chat from that point. It's the fastest fix for a prompt that sent the agent down the wrong path.
4. Enter steers, Tab queues (Codex)
While Codex is working, Enter injects new instructions into the current turn. Tab queues a follow-up prompt, slash command or shell command for the next turn instead, so you can line up "now run the tests" without interrupting anything.
5. Shift+Tab cycles permission modes (Claude Code)
Shift+Tab moves through Manual, acceptEdits and plan, plus bypassPermissions and auto where they're available. I flip to plan before a big change and back to Manual once the plan looks right.
6. Ctrl+G opens the prompt in your real editor
Both tools do this. Claude Code opens your default text editor (Ctrl+X Ctrl+E also works), and Codex opens whatever VISUAL or EDITOR points to, per its CLI customization page. Save and close, and the text lands back in the prompt for long, multi-step instructions.
7. Ctrl+S stashes a half-written prompt (Claude Code)
Halfway through a long prompt and need to ask something else first? Ctrl+S stashes the text and clears the input. Press it again on an empty prompt and the draft, cursor position and pasted content come back.
8. ! runs a shell command inside the session
Start a line with ! in either tool. In Claude Code the output joins the session and Claude responds to it. In Codex the command runs under your current approval and sandbox settings, so !git status doesn't need a second terminal tab.
9. Ctrl+O means two different things
In Claude Code, Ctrl+O toggles the transcript viewer, with every tool call plus the timestamp and model on each reply. In Codex, Ctrl+O copies the latest completed response, and /copy lets you pick a code block instead. Worth knowing before muscle memory crosses over.
10. Ctrl+V pastes a screenshot, Ctrl+B backgrounds a task (Claude Code)
Ctrl+V drops the clipboard image into the prompt as an [Image #N] chip you can refer to by number. Ctrl+B sends a running Bash command or agent to the background so you can keep typing (press it twice inside tmux).
11. New lines without sending (Claude Code)
\ then Enter works in every terminal, and Ctrl+J works without any setup. Shift+Enter is native in Ghostty, iTerm2, WezTerm, Kitty and Warp, so on those you don't need anything else.
12. Check the limit without typing a command
Codex has /status and Claude Code has /usage, but both mean stopping to type. I keep the remaining usage and reset time in the menu bar instead.
TokenBar shows usage and reset times for Claude, Codex, Cursor, Gemini and Copilot from the menu bar. It's built on Peter Steinberger's MIT-licensed CodexBar, credits Pixel Agents, and gives you no extra quota. macOS 14+, $5/month (Basic) or $15 lifetime (Pro).
13. Remap the keys you keep hitting by accident
Claude Code's /keybindings creates or opens ~/.claude/keybindings.json, and changes apply without a restart (see the keybindings docs). Codex's /keymap lets you inspect and change TUI bindings and saves them to config.toml.
Bonus: Ctrl+R works in both
Ctrl+R searches your prompt history in Claude Code and Codex. Handy when you want last Tuesday's "review this diff for security issues" prompt back word for word.
Which shortcut did you only find after months of typing around it?

