> For the complete documentation index, see [llms.txt](https://docs.battle.fyi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.battle.fyi/getting-started/controls.md).

# Controls & Shortcuts

The trading terminal supports keyboard shortcuts for fast execution. Shortcuts only work when no text input is focused.

## Keyboard Shortcuts

| Key     | Action                                              |
| ------- | --------------------------------------------------- |
| **L**   | Open a Long position                                |
| **S**   | Open a Short position                               |
| **X**   | Close all open positions                            |
| **Esc** | Exit to dashboard (only when no positions are open) |
| **1**   | Set position size to 10%                            |
| **2**   | Set position size to 25%                            |
| **3**   | Set position size to 50%                            |
| **4**   | Set position size to 75%                            |
| **5**   | Set position size to 100%                           |
| **?**   | Show shortcut hint overlay                          |

## How the buttons work

There's no separate direction selector. **LONG**, **SHORT**, and **SPOT** are the execute buttons. Clicking LONG directly opens a long position at the current price with your selected leverage and size.

## Closing positions

* Closing a single position gives you a **3-second undo window** with a progress bar. Changed your mind? Cancel before the bar fills.
* **Close All** (X key) does not have an undo window. It executes immediately.

## Help panel

Every page has a **?** button in the bottom-right corner. It opens a searchable help panel with articles relevant to the page you're on. Use it.

## First-run tour

New users get a 5-step spotlight tour on their first visit to the trading terminal. It walks through the asset selector, leverage, position sizing, the trade buttons, and the P\&L display. The tour only runs once.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs.battle.fyi/getting-started/controls.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.
