# Keyboard shortcuts

> Every key in Flozu, for building maps, moving around, scenarios, stories and the Mac app.

On Windows and Linux, use `Ctrl` wherever this page says `⌘`. Shortcuts never fire while you’re typing in a field.

## Building a map

| Keys                    | What it does                                                                |
| ----------------------- | --------------------------------------------------------------------------- |
| A part’s letter         | Add that part under the pointer, or in the middle of the screen. See below. |
| `Z`                     | Add a zone, or draw one around what’s selected.                             |
| `N`                     | Write a note where the pointer is.                                          |
| `/`                     | Search the parts library.                                                   |
| `⌘Z`                    | Undo.                                                                       |
| `⇧⌘Z` or `Ctrl+Y`       | Redo.                                                                       |
| `Delete` or `Backspace` | Delete what’s selected.                                                     |
| `Esc`                   | Let go of the selection, or close a menu or search.                         |
| Arrow keys              | Move what’s selected a grid step at a time.                                 |
| `⌘`-click               | Add to the selection, or take something out of it.                          |
| `Shift`-drag            | Select everything in an area.                                               |
| `⌘Enter`                | Finish writing a note.                                                      |

## Maps inside parts

| Keys | What it does                           |
| ---- | -------------------------------------- |
| `⌘↓` | Open the map inside the selected part. |
| `⌘↑` | Go back out to the map above.          |

See [maps inside parts](https://docs.flozu.app/guides/maps-inside-parts.md).

## Adding parts

Press a part’s key with the pointer over the canvas.

| Key | Adds           |
| --- | -------------- |
| `P` | Person         |
| `C` | Client app     |
| `U` | DNS            |
| `E` | CDN            |
| `V` | Firewall       |
| `G` | Gateway        |
| `I` | Sign-in        |
| `L` | Load balancer  |
| `R` | Rate limiter   |
| `S` | Service        |
| `W` | Worker         |
| `F` | Function       |
| `J` | Scheduler      |
| `A` | AI model       |
| `Q` | Queue          |
| `T` | Topic          |
| `D` | Database       |
| `K` | Cache          |
| `H` | Search         |
| `B` | Storage        |
| `O` | Data warehouse |
| `Y` | Endpoint       |
| `M` | Module         |
| `X` | Custom part    |

## Menus and lists

| Keys                             | What it does                                     |
| -------------------------------- | ------------------------------------------------ |
| `↑` `↓`                          | Move through a menu.                             |
| Typing                           | Jump to an option by its name.                   |
| `Enter`                          | Pick the option.                                 |
| `←` `→`                          | Move between the inspector’s tabs.               |
| `Esc` in the panel down the left | Go back up one level, in a map as anywhere else. |

## The timeline

With the timeline focused:

| Keys                  | What it does                             |
| --------------------- | ---------------------------------------- |
| `←` `→`               | Step back or forward a little.           |
| `Shift` + `←` `→`     | Step back or forward further.            |
| `Page Up` `Page Down` | Step forward or back a tenth of the way. |
| `Home` `End`          | Go to the start or the end.              |
| `Space`               | Play or pause the scenario.              |

## Failure drills

While a scenario runs, with a part, a zone or a line focused:

| Keys                            | What it does                                              |
| ------------------------------- | --------------------------------------------------------- |
| The menu key or `Shift` + `F10` | Open its menu, to take it down or cut it at the playhead. |

See [failure drills](https://docs.flozu.app/guides/failure-drills.md).

## Playing a story

| Keys               | What it does     |
| ------------------ | ---------------- |
| `→` or `Page Down` | Next step.       |
| `←` or `Page Up`   | Previous step.   |
| `Esc`              | Leave the story. |

Presentation clickers send `Page Up` and `Page Down`, so they work too.

## The Mac app

| Menu   | Item                   | Keys    |
| ------ | ---------------------- | ------- |
| File   | New map                | `⌘N`    |
| File   | All maps               | `⇧⌘M`   |
| File   | Import…                | `⌘O`    |
| File   | Export…                | `⌘E`    |
| File   | Export all maps…       | `⌥⌘E`   |
| File   | Close map              | `⌘W`    |
| File   | Show maps in Finder    | `⇧⌘F`   |
| File   | Close window           | `⇧⌘W`   |
| Edit   | Undo                   | `⌘Z`    |
| Edit   | Redo                   | `⇧⌘Z`   |
| View   | Show or hide sidebar   | `⌃⌘S`   |
| View   | Show or hide library   | `⌥⌘1`   |
| View   | Show or hide inspector | `⌥⌘2`   |
| View   | Fit to screen          | `⇧⌘1`   |
| View   | Play or pause          | `⌥⌘P`   |
| View   | Switch theme           | `⌥⌘T`   |
| Window | Show next open map     | `⌃Tab`  |
| Window | Show previous open map | `⌃⇧Tab` |
