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

# Using keyboard shortcuts

Keyboard shortcuts of the BugBug recorder: switch between Add assert, Add hover, Inbox, Variables, Pause recording and Finish and close without using the mouse.

To make it easier to work with the recorder, you can switch between its options with keyboard shortcuts.

{% hint style="info" %}
Generally, the shortcut *number* represents the button position for each option.
{% endhint %}

![BugBug Recorder](https://3168433179-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKixgeBPbLvnD0l1eiV%2Fuploads%2FS0LGULMgJXdZ4wkH8t65%2Fimage.png?alt=media\&token=345ec1dc-325d-431c-b5ad-bafedfec6265)<br>

{% hint style="info" %}
The shortcuts below are for **Windows and Linux**. On **macOS**, use **Control + Option + key**. The recorder always shows the shortcuts for your system.
{% endhint %}

| Shortcut combination | Feature               | Comments                                                                                                                                                                                                                                             |
| -------------------- | --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Ctrl + Alt + 1**   | *Add assert*          | If *"Add Assert"* mode is enabled and you use the shortcut again, it will be disabled.                                                                                                                                                               |
| **Ctrl + Alt + 2**   | *Add hover*           | As before, using the shortcut again will disable this mode.                                                                                                                                                                                          |
| **Ctrl + Alt + 3**   | *Inbox*               | Shows the *"Open Inbox for a special test email address"* view with related options.                                                                                                                                                                 |
| **Ctrl + Alt + 4**   | *Variables*           | Shows the *"Variables"* view with related options.                                                                                                                                                                                                   |
| **Ctrl + Alt + 5**   | *Pause recording*     | <p>Shows the "<em>Pause recording"</em> view with its options.<br><br>In this view you can also use:<br>\* <strong>Ctrl + Alt + 1</strong> to resume recording<br>\* <strong>Ctrl + Alt + 2</strong> to finish and close your recording session.</p> |
| **Ctrl + Alt + 6**   | Finish and close      | Ends and closes your recording session.                                                                                                                                                                                                              |
| **Ctrl + Alt + 7**   | *Visual regression*   | Shows the *"Visual regression"* view. Using the shortcut again closes it.                                                                                                                                                                            |
| **Ctrl + Alt + 8**   | *Files*               | Shows the *"Files"* view, where you choose a project file to upload.                                                                                                                                                                                 |
| **Ctrl + Alt + 9**   | *Check accessibility* | Shows the *"Check accessibility"* view. Using the shortcut again closes it.                                                                                                                                                                          |

### Shortcuts in the BugBug Runner view

Some of the shortcuts also work in the BugBug Runner view:

* **Ctrl + Alt + 1** to start recording additional steps
* **Ctrl + Alt + 2** to finish the test and close the window

<figure><img src="https://3168433179-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKixgeBPbLvnD0l1eiV%2Fuploads%2FnRJTsl0cLmDmMksfP4eG%2Fimage.png?alt=media&amp;token=4b1f1c73-76d5-4546-88b6-bc325b3f466c" alt=""><figcaption><p>BugBug Runner</p></figcaption></figure>

{% hint style="info" %}
Looking for how a test presses Enter, Tab, Escape or arrow keys? That's part of the Type text step. See [Pressing keys in a test](https://docs.bugbug.io/recording-tests-steps/recording-keyboard-typing.md#pressing-keys-in-a-test).
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.bugbug.io/recording-tests-steps/using-keyboard-shortcuts.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
