> For the complete documentation index, see [llms.txt](https://stakpak.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stakpak.gitbook.io/docs/how-it-works/keyboard-shortcuts.md).

# Keyboard Shortcuts

## Overview

<figure><img src="/files/4fkBuSDeaKS3DsomNZBv" alt=""><figcaption></figcaption></figure>

### Navigation

* ↑ / ↓ : Navigate messages
* Page Up / Page Down : Page through messages
* Ctrl + ↑ / ↓ : Navigate dropdown/dialog
* Tab : Complete command or select file
* Esc : Close dialogs/popups

### Text Input

* Ctrl + A : Move cursor to start of line
* Ctrl + E : Move cursor to end of line
* Ctrl + F : Move cursor right
* Ctrl + B : Move cursor left
* Alt + F : Move cursor to next word
* Alt + B : Move cursor to previous word
* Ctrl + U : Delete to start of line
* Ctrl + W : Delete previous word
* Ctrl + H : Delete previous character
* Ctrl + J : Insert newline
* Enter : Submit input
* Backspace : Delete previous character

### Tool Management&#x20;

* Ctrl + O : Toggle auto-approve mode
* Ctrl + Y : Toggle side panel
* Ctrl + R : Retry last tool call

### UI Controls

* Ctrl + C : Quit (double press)
* Ctrl + T : Toggle collapsed messages
* Ctrl + L : Toggle mouse capture
* Ctrl + F : Show profile switcher
* Ctrl + P : Show command palette
* Ctrl + S : Show shortcuts (this popup)
* Ctrl + G : Show file changes
* Ctrl + X : Copy session ID

### File Search

* @ : Trigger file search
* $ : Enter interactive shell mode
* Tab : Select file from search

### Mouse Control

* Scroll Up / Down : Scroll messages
* Click : Interact with UI elements

## References

* [Install Stakpak](/docs/get-started/install-stakpak.md)
* [Stakpak/Agent Readme](https://github.com/stakpak/agent)
* [cli/README.md](https://github.com/stakpak/agent/blob/main/cli/README.md)&#x20;
* [Slash Commands](/docs/how-it-works/slash-commands.md)
