# Global shortcuts

Source: https://docs.lightair.app/desktop/control-and-automate/shortcuts

> Set keys that record, go live, switch scenes, save clips and mute your microphones from any app, even while a game or a call is in front.

In short:
- Global shortcuts work whichever app is in front. Set them in **Settings › Shortcuts**, under **Anywhere on your Mac** (**Anywhere on your PC** on Windows).
- Click **Set** next to an action and press the keys. Use a modifier with a letter or number, or an F key on its own.
- None are set at first, except the AI co-host's kill switch.
- If another app already has the keys, Lightair says so and leaves the action without them.

In the app: Settings › Shortcuts; Help › Keyboard Shortcuts

Lightair's ordinary shortcuts, like `⌘R` or `Ctrl+R` on Windows to record, work while its window is in front.
Global shortcuts work from anywhere: start a recording or switch scenes from inside a game, a
browser or a video call. Every default key is listed in
[Keyboard shortcuts](/desktop/reference/keyboard-shortcuts).

## Set a global shortcut

1. Open **Settings** (`⌘,` or `Ctrl+,` on Windows) and choose **Shortcuts**. On a Mac, **Help › Keyboard
   Shortcuts** opens the same page.
2. Find the action under **Anywhere on your Mac** (**Anywhere on your PC** on Windows).
3. Click **Set**. The row says **Press keys… (Esc cancels)**.
4. Press the keys you want.

The keys take effect at once and are kept on this computer, not in the workspace. To change a
shortcut, click **Change** and press new keys. To remove it, click the **×** beside it.

### Which keys work

A global shortcut needs a modifier, so plain typing in other apps is left alone:

- **On a Mac:** `⌘`, `⌃` or `⌥` with a letter or a
  number, for example `⌃⌥1`. `⇧` can be added but doesn't
  count on its own.
- **On Windows:** `Ctrl` or `Alt` with a letter or a number, for example
  `Ctrl+Alt+1`.
- **F1 to F12** work alone, with no modifier.
- **Space** works with a modifier.

Keys Lightair can't use get the note **Use ⌘, ⌃ or ⌥ with a letter or number, or an F key.** (on
Windows, **Use Ctrl or Alt with a letter or number, or an F key.**).

Giving keys to one action takes them from any other action that had them.

### When the keys are taken

If macOS, Windows or another app already uses the keys, Lightair can't have them. The page says,
for example, **⇧⌘R is taken by macOS or another app.** and the action stays without a shortcut.
Choose other keys.

## What you can set

| Action | What it does |
|---|---|
| **Start or stop recording** | Starts recording, or stops it. |
| **Go live or end** | Goes live, or ends the stream. |
| **Start every destination** | Goes live to every destination that's switched on. Does nothing when you're already live. |
| **Stop every destination** | Ends every destination. |
| **Start or stop destination 1** to **4** | Starts or stops one destination, by its place in **Outputs**. The row shows the destination's name. |
| **Take (cued scene on air)** | Puts the cued scene on air, when you work with cued scenes ([Studio mode](/desktop/build-your-show/studio-mode)). |
| **Start or stop a Studio take** | Starts or stops a [Studio take](/desktop/record-and-edit/studio-takes). |
| **Add marker** | Adds a marker to the recording. |
| **Save clip** | Saves the last moments as a clip ([Replay and clips](/desktop/record-and-edit/replay-and-clips)). |
| **Mute or unmute microphones** | Mutes every microphone, or unmutes them. |
| **Screen zoom in or out (Toggle zoom)** | Zooms a screen capture in, following the pointer, or back out, where its zoom is set to Toggle. |
| **Scene 1 on air** to **Scene 5 on air** | Puts the first to fifth scene on air. |
| **Stop PiAir (kill switch)** | Stops the [AI co-host](/desktop/control-and-automate/ai-cohost): AI drives off, its speech cut, whatever it's doing stopped. |
| **Skip what's being said (Voice track)** | Stops what the Voice track is saying; the next thing waiting is said. |

The kill switch always has keys: `⌃⌥⌘K` on a Mac and
`Ctrl+Alt+K` on Windows, until you give it others.

The same actions can be given to a MIDI controller's buttons ([MIDI](/desktop/control-and-automate/midi))
and to Stream Deck keys ([Stream Deck](/desktop/control-and-automate/stream-deck)).

## Other global keys

Three other kinds of keys work from any app, and **Settings › Shortcuts** lists them too:

- **Automations.** An automation whose trigger is **A hotkey (any app)** runs when you press its
  keys. Keys already used by a shortcut above stay with the shortcut. See
  [Automations](/desktop/control-and-automate/automations).
- **Avatar expressions.** Set in an avatar's Inspector, with the keyboard button beside
  **Expression**. They're listed under **Avatar expressions**; press the keys again to go back to
  no expression. Click **×** to remove one. See [Avatars](/desktop/build-your-show/avatars).
- **A PNGtuber's push to talk**, set in its Inspector under **Push to talk**. On a Mac you hold the
  keys while you talk. Windows doesn't report when keys are let go, so there each press switches
  talking on or off. See [PNGtuber](/desktop/build-your-show/pngtuber).

Keys a shortcut or an automation already uses can't be given to an expression or to push to talk.

## Editor keys

The Editor's commands are listed on the same page, in groups named after the Editor's menus:
**Editor · Clip**, **Editor · Timeline** and **Editor · Playback**. While the Editor is in front,
these groups come first.

1. Click **Change** next to a command.
2. Press the keys.

Keys that belonged to another command move to this one, and the page tells you which command now
has none. The **↺** button (**Back to its own keys**) puts a command's own keys back.

## Related

- [Keyboard shortcuts](/desktop/reference/keyboard-shortcuts)
- [MIDI](/desktop/control-and-automate/midi)
- [Automations](/desktop/control-and-automate/automations)
