# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://stakpak.gitbook.io/docs/how-it-works/keyboard-shortcuts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
