# 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` + `` ` ``                                          |

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

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

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

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

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

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.