---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://excalidraw.heycactus.ai/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
lang: en
---

# Keyboard shortcuts

Most editor actions have a key: undo, zoom, flip, layer order and the view toggles all run from the keyboard. Press `?` to see the full list under **Keyboard shortcuts** in **Help**, which shows Ctrl on Windows and Linux and Cmd on Mac. A key runs only where its action allows it, such as undo, which does not run in view mode.

> Verified against the product on 2026-11-23

## Open the list of shortcuts

Press `?` to open **Help**, which lists the shortcuts under **Keyboard shortcuts**.

Each key shows as Ctrl on Windows and Linux, and as Cmd on Mac.

## Undo and redo

| Shortcut | Keys | What it does |
| --- | --- | --- |
| Undo | `Ctrl/Cmd+Z` | Undoes the last change. It does not run in view mode. |
| Redo | `Ctrl/Cmd+Shift+Z`, or `Ctrl/Cmd+Y` | Redoes the change you undid. |

Undo does nothing while you draw a shape, drag, resize, type text, or drag a selection box. Finish that step, then press undo again.

## Zoom and move around

Zoom keys work in view mode too.

| Shortcut | Keys | What it does |
| --- | --- | --- |
| Zoom in | `=` or the number pad `+`, with `Ctrl/Cmd` or `Shift` | Zooms in by 10% each press. |
| Zoom out | `-` or the number pad `-`, with `Ctrl/Cmd` or `Shift` | Zooms out by 10% each press. |
| Reset zoom | `0` or the number pad `0`, with `Ctrl/Cmd` or `Shift` | Sets the zoom to 100%, or to the locked minimum zoom when a zoom lock is set. |
| Zoom to fit all elements | `Shift+1` | Fits all elements on the screen. Under a viewport lock, it fits the locked box. |
| Fit selection without zooming past 100% | `Shift+2` | Fits the selection, or everything when nothing is selected, and does not zoom past 100%. |
| Zoom to selection | `Shift+3` | Fits the selection, or everything when nothing is selected, and can zoom past 100%. |

The zoom-in button turns off at 3,000%, and the zoom-out button at 10%.

## Select and move shapes

| Shortcut | Keys | What it does |
| --- | --- | --- |
| Select all | `Ctrl/Cmd+A` | Selects every shape on the canvas, except locked shapes and text inside a shape. It does not run in view mode. |
| Deselect | `Escape` | Clears the selection and returns to the selection tool. Inside a group, it steps up to the group around it. |
| Move | Arrow keys | Moves the selected shapes. |
| Flowchart | `Ctrl/Cmd` with an arrow key, and `Alt` with an arrow key | Builds a flowchart from a box, and moves between its boxes. See [Flowcharts](https://excalidraw.heycactus.ai/sv4794-flowcharts). |

An arrow key moves the selection by one grid step while the grid is on, and by 1 with Shift. With the grid off, an arrow key moves it by 1, and with Shift by 5.

In view mode, arrow keys move nothing.

Escape only takes effect when something is selected, a shape is being drawn, or a tool other than selection is on. It does nothing while you type in a text box.

## Flip, layer, group and edit shapes

| Shortcut | Keys | What it does |
| --- | --- | --- |
| Flip horizontally | `Shift+H` | Flips the selection left to right. |
| Flip vertically | `Shift+V` | Flips the selection top to bottom. |
| Bring forward | `Ctrl/Cmd+]` | Moves the selection up one layer. |
| Send backward | `Ctrl/Cmd+[` | Moves the selection down one layer. |
| Bring to front | `Ctrl/Cmd+Shift+]` on Windows and Linux, `Ctrl/Cmd+Alt+]` on Mac | Moves the selection to the top layer. |
| Send to back | `Ctrl/Cmd+Shift+[` on Windows and Linux, `Ctrl/Cmd+Alt+[` on Mac | Moves the selection to the bottom layer. |
| Group and ungroup | `Ctrl/Cmd+G` and `Ctrl/Cmd+Shift+G` | Groups or ungroups the selection. See [Groups and frames](https://excalidraw.heycactus.ai/4d5cbg-groups-and-frames). |
| Hyperlink | `Ctrl/Cmd+K` | Opens the link box when exactly one shape is selected. See [Align and element links](https://excalidraw.heycactus.ai/8heprv-align-and-element-links). |
| Wrap | `W` | Wraps or unwraps the selection, when something is selected. See [Text](https://excalidraw.heycactus.ai/7vttc4-text). |
| Auto-resize | `Alt+W` | Turns auto-resize on or off for the selected text. See [Text](https://excalidraw.heycactus.ai/7vttc4-text). |
| Lock | `Q` | Locks or unlocks the selection. See [Align and element links](https://excalidraw.heycactus.ai/8heprv-align-and-element-links). |

Flipping a selection made only of arrows that are attached at an end swaps their arrowheads instead of mirroring them.

## Copy, cut, save and open

| Shortcut | Keys | What it does |
| --- | --- | --- |
| Cut | `Ctrl/Cmd+X` | Copies the selection, then deletes it. The shapes inside a cut frame go with it. |
| Copy and paste | `Ctrl/Cmd+C` and `Ctrl/Cmd+V` |  |
| Copy as PNG | `Shift+Alt+C` | Copies the selection as an image, or the whole canvas when nothing is selected. It is offered only where the browser can write images to the clipboard. |
| Save | `Ctrl/Cmd+S` | Saves into the file you opened. It does not run in view mode. |
| Save as | `Ctrl/Cmd+Shift+S` | Saves the drawing to a file, and runs in view mode too. |
| Open | `Ctrl/Cmd+O` | Opens a file. It does not run in view mode. |

## Show and hide panels and modes

| Shortcut | Keys | What it does |
| --- | --- | --- |
| Grid | `Ctrl/Cmd+'` | Shows or hides the grid. Each press also turns object snapping off. |
| Object snapping | `Alt+S` | Turns object snapping on or off, and turns the grid off. |
| Zen mode | `Alt+Z` | Turns zen mode on or off. |
| View mode | `Alt+R` | Turns view mode on or off. In view mode, only zoom and navigation actions run, and only the hand and laser tools can be picked. |
| Stats | `Alt+/` | Opens or closes the stats panel. See [Stats](https://excalidraw.heycactus.ai/d4zdb7-stats). |
| Dark or light theme | `Alt+Shift+D` | Switches between dark and light theme. |
| Search | `Ctrl/Cmd+F` | Opens search in the sidebar, or moves the cursor to its box when it is already open. It does nothing while a dialog is open. See [Charts and search](https://excalidraw.heycactus.ai/xm65v6-charts-and-search). |

## If a shortcut does nothing

- In view mode most keys do nothing. Press `Alt+R` to turn view mode off.
- Undo does nothing while a shape is being drawn, dragged, resized, or typed into. Finish that step, then press undo again.
- Escape does nothing while you type in a text box. Click the canvas, then press Escape.
- When two shortcuts match the same key, neither runs. Use the menu or the toolbar for that action instead.

## Related pages

- [Canvas and toolbar](https://excalidraw.heycactus.ai/tqp2n6-canvas-and-toolbar): the tool keys and the zoom buttons on screen.
- [Flowcharts](https://excalidraw.heycactus.ai/sv4794-flowcharts): building boxes from the arrow keys.
- [Groups and frames](https://excalidraw.heycactus.ai/4d5cbg-groups-and-frames): grouping and frames.
- [Align and element links](https://excalidraw.heycactus.ai/8heprv-align-and-element-links): hyperlinks and locking.
- [Text](https://excalidraw.heycactus.ai/7vttc4-text): wrapping and auto-resizing text.
- [Charts and search](https://excalidraw.heycactus.ai/xm65v6-charts-and-search): the search box.
- [Stats](https://excalidraw.heycactus.ai/d4zdb7-stats): the stats panel and the grid step.
- [Command palette](https://excalidraw.heycactus.ai/dmf727-command-palette): finding a command by name.
- [Export and save](https://excalidraw.heycactus.ai/tv5dsf-export-and-save): saving and opening files.
