Keyboard Shortcuts
Keyboard shortcuts to navigate the interactive TUI workspace.
KnightCode is designed to be fully keyboard-driven. Use these shortcuts to speed up your development workflows without reaching for your mouse.
Workspace & Input Actions
| Shortcut | Action |
|---|---|
Tab | Switch input mode (BUILD, PLAN, AUTO). |
Ctrl + T | Toggle the Todo side panel on the right. |
Enter | Submit the prompt to the agent. |
Shift + Enter | Insert a newline in the input bar. |
Ctrl + C | Clears the prompt input bar. (Note: Ctrl+C is intercepted by the TUI exit-guard and cannot be used to exit the app. Use /exit instead.) |
Streaming Control
| Shortcut | Action |
|---|---|
Esc | Interrupt and cancel the streaming response from the agent. |
Dialog Navigation & Menus
When a dialog modal (e.g., /sessions, /theme, /models) or autocomplete menu (e.g. @path, / command menu) is open:
| Shortcut | Action |
|---|---|
↑ / ↓ | Scroll and navigate up and down through the option list. |
Enter | Select the highlighted option. |
Esc | Cancel the selection and close the dialog or autocomplete menu. |