> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

# Keyboard shortcuts

> Learn about keyboard shortcuts in Fern documentation, including navigation shortcuts, search commands, Ask AI panel controls, and API playground shortcuts.

Fern docs include built-in keyboard shortcuts for navigation, search, and interactive features.

## Interactive elements

| Action                                                                                                                                         | Shortcut                                                  |
| ---------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| Move focus between interactive elements                                                                                                        | `Tab`                                                     |
| Move focus backward between interactive elements                                                                                               | `Shift` + `Tab`                                           |
| Activate [buttons](/learn/docs/writing-content/components/button) and [expandable sections](/learn/docs/writing-content/components/accordions) | `Enter` or `Space`                                        |
| Close open dialogs, panels, and the API playground                                                                                             | `Escape`                                                  |
| Toggle Ask AI panel                                                                                                                            | `Command` + `/` (macOS)<br />`Ctrl` + `/` (Windows/Linux) |
| Toggle API playground/explorer                                                                                                                 | `Ctrl` + `` ` ``                                          |

The `Command`/`Ctrl` + `/` shortcut is different from the single `/` key which opens the regular [search dialog](#search).

## Navigation

| Action                                | Shortcut                                                          |
| ------------------------------------- | ----------------------------------------------------------------- |
| Navigate to the previous or next page | `Command` + `← / →` (macOS)<br />`Alt` + `← / →` (Windows/Linux)  |
| Scroll to top or bottom of page       | `Command` + `↑ / ↓` (macOS)<br />`Ctrl` + `↑ / ↓` (Windows/Linux) |

Some browsers may intercept these shortcuts for back/forward history navigation.

## Search

| Action                                                    | Shortcut                                                  |
| --------------------------------------------------------- | --------------------------------------------------------- |
| Open search dialog                                        | `Command` + `K` (macOS)<br />`Ctrl` + `K` (Windows/Linux) |
| Open search dialog when focus isn't in a text input field | `/` (forward slash)                                       |

The `/` shortcut won't work when typing in an input field, `textarea`, or `contenteditable` element.

Within the search dialog:

| Action                          | Shortcut     |
| ------------------------------- | ------------ |
| Navigate between search results | `Arrow keys` |
| Select a search result          | `Enter`      |

## Troubleshooting

If keyboard shortcuts aren't working:

* **Browser conflicts**: Some browsers use the same shortcuts for their own features (e.g., `Command` + `← / →` for history navigation).
* **Operating system conflicts**: Your OS may intercept certain keyboard combinations. Check your system keyboard settings.
* **Focus in input fields**: The `/` shortcut won't work when typing in a text field. Use `Command`/`Ctrl` + `K` instead.
* **Extension conflicts**: Browser extensions may override keyboard shortcuts. Try disabling extensions.