# Keyboard shortcuts

The keys of the Coldwave editor as it ships, for the game view. Press `?` over the game
for the same list inside the editor (**Keys of the editor**), with a field to find a key;
it shows your own keys when you have changed any in **Settings › Keymap**.

> **Note.** This page is generated from the editor's keybinding tables. A single letter
> is a shortcut only while the pointer is over the game and you are not typing in a field;
> while the game has the keyboard, every key is the game's until `Esc` gives them back.

## Play and time

With the pointer over the game.

| Does | macOS | Windows and Linux |
| --- | --- | --- |
| Play or pause the game | `Space`, `K`, `⌘↩` | `Space`, `K`, `Ctrl+Enter` |
| Step the game back once | `,`, `J` | `,`, `J` |
| Step the game once | `.`, `L` | `.`, `L` |

## A script stopped at a line

While a breakpoint or an error holds a script.

| Does | macOS | Windows and Linux |
| --- | --- | --- |
| Let the stopped script go on | `⌘⌥R`, `F9` | `F9` |
| Run the stopped script to its next line | `F8` | `F8` |
| Step into the call | `F7` | `F7` |
| Run out to the caller | `⇧F8` | `Shift+F8` |

## Undo, search and the window

| Does | macOS | Windows and Linux |
| --- | --- | --- |
| Switch between Game and Code | `⌃⌥⇧0` | `Ctrl+Alt+Shift+0` |
| Conversation only | `⌃⌥⇧9` | `Ctrl+Alt+Shift+9` |
| Show or hide the side column | `C` | `C` |
| Undo | `⌘Z` | `Ctrl+Z` |
| Redo | `⌘⇧Z` | `Ctrl+Shift+Z` |
| Show the keys | `?` | `?` |
| Find anything | `⌘K` | `Ctrl+K` |
| Export the game | `⌘E` | `Ctrl+E` |
| Open the atlas or model open in Assets in the viewer | `V` | `V` |

## The view

With the pointer over the paused game.

| Does | macOS | Windows and Linux |
| --- | --- | --- |
| Frame the selection | `F` | `F` |
| Fit the whole picture | `⌘0` | `Ctrl+0` |
| Zoom to 100% | `⌘1` | `Ctrl+1` |

## Tools on the picture

With the pointer over the paused game. One letter picks a tool.

| Does | macOS | Windows and Linux |
| --- | --- | --- |
| Select | `V` | `V` |
| Pan | `H` | `H` |
| Move | `M` | `M` |
| Turn | `T` | `T` |
| Size | `S` | `S` |
| Measure | `R` | `R` |
| Why is this pixel like this? | `W` | `W` |

## The picked thing

With a thing picked and the game paused.

| Does | macOS | Windows and Linux |
| --- | --- | --- |
| Pick nothing | `Esc` | `Esc` |
| Delete the picked thing | `⌫`, `⌦` | `Backspace`, `Delete` |
| Duplicate the picked thing | `⌘D` | `Ctrl+D` |
| Add an empty thing | `⇧A` | `Shift+A` |
| Grab the picked things | `G` | `G` |
| Move the picked thing a pixel left | `←` | `←` |
| Move the picked thing ten pixels left | `⇧←` | `Shift+←` |
| Move the picked thing a pixel right | `→` | `→` |
| Move the picked thing ten pixels right | `⇧→` | `Shift+→` |
| Move the picked thing a pixel up | `↑` | `↑` |
| Move the picked thing ten pixels up | `⇧↑` | `Shift+↑` |
| Move the picked thing a pixel down | `↓` | `↓` |
| Move the picked thing ten pixels down | `⇧↓` | `Shift+↓` |

## Painting tiles

While a tilemap is being painted.

| Does | macOS | Windows and Linux |
| --- | --- | --- |
| Paint tiles | `B` | `B` |
| Erase tiles | `E` | `E` |
| Fill tiles | `G` | `G` |
| Rectangle of tiles | `U` | `U` |
| A smaller brush | `[` | `[` |
| A larger brush | `]` | `]` |
| Stop painting tiles | `Esc` | `Esc` |

## A 3D game's view

With the pointer over a paused 3D game. These letters are the picture's own:
they are the same on every system and are not in **Settings › Keymap**.

| Does | Key |
| --- | --- |
| Orbit | `O` |
| Handles along the thing's own axes | `L` |
| Look with perspective | `5` |
| Top view | `7` |
| Front view | `1` |
| Side view | `3` |
| Look through the game's camera | `0` |

## Keys that are not in the keymap

These belong to the picture and cannot be rebound.

| Does | Key |
| --- | --- |
| Move the view with any tool | Hold `Space` and drag (let go without a drag and the game plays) |
| Zoom at the pointer | The wheel, or a pinch |
| Write a typed value to the scene at once | `⌘↩` on macOS, `Ctrl+Enter` elsewhere, in a field of the Inspector |
| In a 3D game, take the X, Y or Z arrow, ring or handle of the picked thing | `X`, `Y`, `Z` (the same letter again lets go) |
| Give the keyboard back from the game | `Esc` (the first press lets go of the picked thing) |

## Other keymaps

**Settings › Keymap** changes any key and offers other sets to start from. The tables
above are the default set: the one named **macOS** on a Mac and **Windows** elsewhere.
