#### Reference

# Agents Window keyboard shortcuts

> [!NOTE]
> On the other surface
>
> This page covers the Agents Window. For the Terminal UI, see [Keyboard shortcuts in the Terminal UI](/build/keyboard-shortcuts).

Overview of keyboard shortcuts in Grok Build. See all keyboard shortcuts by pressing `Cmd R` / `Ctrl R` then `Cmd S` / `Ctrl S` or by opening command palette `Cmd Shift P` / `Ctrl Shift P` and searching for `Keyboard Shortcuts`.

Learn more about Keyboard Shortcuts in Grok Build with [Key Bindings for VS Code](https://code.visualstudio.com/docs/getstarted/keybindings) as a baseline for Grok Build's keybindings.

All Grok Build keybindings, including Grok Build-specific features, can be remapped in Keyboard Shortcuts settings.

## General

| Shortcut               | Action                                  |
| ---------------------- | --------------------------------------- |
| `Cmd I` / `Ctrl I`       | Toggle Sidepanel (unless bound to mode) |
| `Cmd L` / `Ctrl L` or `Cmd K` / `Ctrl K` | Toggle Sidepanel (unless bound to mode) |
| `Cmd E` / `Ctrl E`       | Toggle Agent layout                     |
| `Cmd .` / `Ctrl .`       | Mode Menu                               |
| `Cmd /` / `Ctrl /`       | Loop between AI models                  |
| `Cmd Shift J` / `Ctrl Shift J` | Grok Build settings                         |
| `Cmd Shift Space` / `Ctrl Shift Space` | Toggle Voice Mode (dictation)        |
| `Cmd ,` / `Ctrl ,`       | General settings                        |
| `Cmd Shift P` / `Ctrl Shift P` | Command palette                         |

## Chat

Shortcuts for the chat input box.

| Shortcut                                             | Action                       |
| ---------------------------------------------------- | ---------------------------- |
| `Return` / `Enter`                                    | Queue message (default)      |
| `Cmd Return` / `Ctrl Enter` when typing                    | Force send message           |
| `Cmd Shift Backspace` / `Ctrl Shift Backspace`                       | Cancel generation            |
| `Cmd Shift L` / `Ctrl Shift L` with code selected            | Add selected code as context |
| `Cmd V` / `Ctrl V` with code or log in clipboard       | Add clipboard as context     |
| `Cmd Shift V` / `Ctrl Shift V` with code or log in clipboard | Add clipboard to input box   |
| `Cmd Return` / `Ctrl Enter` with suggested changes         | Accept all changes           |
| `Cmd Shift Backspace` / `Ctrl Shift Backspace` with suggested changes | Reject all changes           |
| `Tab`                                       | Cycle to next message        |
| `Shift Tab`                                 | Rotate between Agent modes   |
| `Cmd Opt /` / `Ctrl Alt /`                                 | Model toggle                 |
| `Cmd N` / `Ctrl N` / `Cmd R` / `Ctrl R`                  | New chat                     |
| `Cmd T` / `Ctrl T`                                     | New chat tab                 |
| `Cmd [` / `Ctrl [`                                     | Previous chat                |
| `Cmd ]` / `Ctrl ]`                                     | Next chat                    |
| `Cmd W` / `Ctrl W`                                     | Close chat                   |
| `Escape` / `Esc`                                    | Unfocus field                |

## Code selection & context

| Shortcut                                              | Action                               |
| ----------------------------------------------------- | ------------------------------------ |
| `@`                                          | [@-mentions](/build/agents-window/agent/prompting)  |
| `/`                                          | Shortcut Commands                    |
| `Cmd Shift L` / `Ctrl Shift L`                                | Add selection to Chat                |
| `Cmd L` / `Ctrl L` or `Cmd K` / `Ctrl K`                  | Add selection to new chat            |
| `Cmd →` / `Ctrl →`                                      | Accept next word of suggestion       |
| `Cmd Return` / `Ctrl Enter`                                 | Search codebase in chat              |
| Select code, `Cmd C` / `Ctrl C`, `Cmd V` / `Ctrl V`       | Add copied reference code as context |
| Select code, `Cmd C` / `Ctrl C`, `Cmd Shift V` / `Ctrl Shift V` | Add copied code as text context      |

## Tab

| Shortcut         | Action            |
| ---------------- | ----------------- |
| `Tab`   | Accept suggestion |
| `Cmd →` / `Ctrl →` | Accept next word  |

## Related

* [Keyboard shortcuts help](/build/agents-window/help/customization/keyboard-shortcuts)
