Sub topic 8
Keyboard shortcuts for tiling and switching Spaces
This chapter covers the keyboard side of the tools from earlier chapters: tiling windows and moving between Spaces without the trackpad. It assumes you know what a Space is, can open Mission Control, and have used the Window menu's tiling commands. It also assumes you can find the Keyboard pane in System Settings.
Why shortcuts are worth learning
Gestures are quick but depend on a trackpad and on your fingers landing correctly. Shortcuts work with any keyboard, can be remapped, and can be triggered from scripts. They also behave the same on every display.
Two groups of shortcuts matter here:
- Shortcuts that change which Space you see (Mission Control shortcuts).
- Shortcuts that resize and position the front window (tiling shortcuts).
Both groups depend on the modifier keys listed in the prerequisites. The key labelled Fn on most Mac keyboards is also called Globe on recent models. This chapter writes it as Fn.
Default Space and Mission Control shortcuts
The following shortcuts work by default on current macOS versions.
| Shortcut | Action |
|---|---|
| Control + Left Arrow | Move to the Space on the left |
| Control + Right Arrow | Move to the Space on the right |
| Control + Up Arrow | Open Mission Control |
| Control + Down Arrow | Show App Exposé (all windows of the front app) |
| F3 (or Fn + F3 on some keyboards) | Open Mission Control |
| F11 (or Fn + F11) | Show Desktop, which slides windows aside |
Some keyboards print different icons on F3 or F11, and some require Fn to be held. If a key does nothing, test with the Control + Up Arrow shortcut instead. If that works, the issue is the function key behavior and not Mission Control.
You can also confirm that Mission Control responds at all from Terminal:
open -a "Mission Control"If this opens Mission Control but your shortcut does not, the shortcut is disabled or captured by something else. That case is covered in the pitfalls below.
Switching directly to a numbered Space
Control + number jumps straight to a Space. It is off by default.
To enable it:
- Open System Settings and choose Keyboard.
- Click Keyboard Shortcuts, then choose Mission Control in the sidebar.
- Expand Mission Control and turn on "Switch to Desktop 1", "Switch to Desktop 2", and so on.
The default key for Desktop N is Control + N. The list shows one entry for each Space that currently exists, so a new Space may need its shortcut turned on after you create it. You can click the shortcut text of any entry and press a different combination to change it.
Direct switching is useful when your Spaces have fixed jobs. For example, Desktop 1 holds mail and chat, Desktop 2 holds your editor, and Desktop 3 holds a browser. Pressing Control + 2 always lands on the editor, whichever Space you are on. Control + Left and Right only move one step at a time, and they stop at the first and last Space.
Moving a window to another Space
You can send the front window to a neighboring Space without opening Mission Control:
- Press and hold the window's title bar with the mouse.
- While still holding, press Control + Left Arrow or Control + Right Arrow.
- Release the mouse after the new Space appears.
Some people find this awkward, because it needs one hand on the mouse and the other on the keyboard. The alternative is to open Mission Control and drag the window onto a Space thumbnail at the top of the screen. The two methods give the same result.
Built-in tiling shortcuts
Tiling shortcuts act on the front window. They were added in macOS Sequoia and are also found in the Window menu under Move & Resize. These are the half-screen and utility shortcuts:
| Shortcut | Action |
|---|---|
| Fn + Control + Left Arrow | Tile the window on the left half |
| Fn + Control + Right Arrow | Tile the window on the right half |
| Fn + Control + Up Arrow | Tile the window on the top half |
| Fn + Control + Down Arrow | Tile the window on the bottom half |
| Fn + Control + F | Fill the screen (a large window, not full screen) |
| Fn + Control + C | Center the window |
| Fn + Control + R | Return to the previous size and position |
The quarter positions (top left, top right, bottom left, bottom right) and the arrangement commands (Left & Right, Top & Bottom, Quarters) also have shortcuts. Rather than memorize them from a table that may change between releases, open the Window menu, choose Move & Resize or Arrange, and read the key combination printed beside each item. That menu is the source of truth for your macOS version.
Two points are easy to miss:
- Fill is not full screen. Fill makes the window cover the available area but keeps the menu bar and Dock behavior. The window does not move to its own Space. Full screen, covered in an earlier chapter, creates a new Space.
- Return restores the last size. After tiling a window, Fn + Control + R takes it back to where it was before you tiled it. This is the fastest way to undo an accidental tile.
A note on Arrange commands
The Arrange commands act on several windows at once. They pick the front window plus others from the current Space and place them in a layout. For instance, "Left & Right" puts the front window on the left and another window on the right. The result depends on which windows are open, so the outcome can differ from what you expect if many windows are present. Close or minimize windows you do not want included before using Arrange.
How the shortcuts fit together
The diagram shows a typical flow for a work session using both groups of shortcuts.
Notice that tiling happens inside one Space. The tiled windows do not follow you when you change Spaces. Each Space keeps its own arrangement, and you tile again after you move a window.
Choosing Spaces by app instead of by number
A third way to change Space does not use a Space shortcut at all. Press Command + Tab to switch to an app. If the app's window is on a different Space, macOS can switch to that Space for you.
This depends on a setting: System Settings > Desktop & Dock > Mission Control > "When switching to an application, switch to a Space with open windows". When it is on, Command + Tab takes you to the Space where the app already has a window. When it is off, the app's window may open or be pulled to the current Space.
This setting is a common reason two people see different behavior from the same shortcut. Check it before assuming a shortcut is broken.
Automating a shortcut from Terminal
Sometimes you want to trigger a Space switch from a script, for example inside a larger automation. You can send the keystroke with osascript. Key code 124 is the Right Arrow:
osascript -e 'tell application "System Events" to key code 124 using control down'To jump to Desktop 2 (this works only if the Control + 2 shortcut is enabled), use key code 19, which is the number 2 on a standard keyboard:
osascript -e 'tell application "System Events" to key code 19 using control down'The first time you run these, macOS asks whether Terminal may control your computer. Grant it under System Settings > Privacy & Security > Accessibility. Without that permission the command fails with an error about not being allowed to send keystrokes.
Note that this simulates the shortcut. If the shortcut is disabled in System Settings, the simulated key does nothing.
Customizing and avoiding conflicts
Shortcuts live in System Settings > Keyboard > Keyboard Shortcuts. The Mission Control section controls the Space shortcuts. Tiling shortcuts are fixed to the Window menu items, but any app can define its own shortcut that collides with them.
Typical sources of conflict:
- Terminal apps and editors. Control + Left and Right are used to move by word in many shells and editors. If the app receives the key first, you never switch Spaces. The usual fix is to remap the Mission Control shortcuts to a combination such as Control + Option + Left, or to change the app's own binding.
- Remote desktop and virtual machine apps. These often capture all keystrokes while they are in focus. Release the capture, or use the app's menu, before using a Space shortcut.
- Input-source switching. Another shortcut in the Keyboard pane may already use the combination you want. macOS shows a warning icon next to a duplicate and only one of them works.
- External keyboards. A non-Apple keyboard may lack the Fn or Globe key. In that case, use the Window menu for tiling, or remap a modifier in System Settings > Keyboard > Keyboard Shortcuts > Modifier Keys.
Common pitfalls
- Shortcut does nothing. Check that it is enabled in Keyboard Shortcuts > Mission Control. Then check for a conflict, then for the Fn requirement on function keys.
- Spaces are in an unexpected order. If "Automatically rearrange Spaces based on most recent use" is on, Space numbers change as you work. Control + number then lands on a different Space than before. Turning this setting off keeps the numbers stable. Reordering Spaces by dragging in Mission Control also changes the numbers.
- Tiling shortcut works in one app but not another. Some apps have fixed-size windows or restrict resizing. The Window menu items are dimmed for these.
- Tiled window will not stay tiled. Apps that change their own window size on launch or on content changes can undo a tile. Re-tile after the app finishes loading.
Exercise
You use Control + 3 to jump to your browser Space. After a long session the shortcut starts landing on your editor Space instead. Name two settings or actions that could cause this, and one way to make the shortcut reliable.
Show answer
Either "Automatically rearrange Spaces based on most recent use" is on and has reordered the Spaces, or you dragged Spaces into a new order in Mission Control. Removing a Space earlier in the row also renumbers the later ones. To make it reliable, turn off automatic rearranging (System Settings > Desktop & Dock > Mission Control) and avoid reordering or deleting Spaces ahead of the one you target. You can also check from Terminal with defaults read com.apple.dock mru-spaces. A value of 0 means automatic rearranging is off.
Exercise
You tile a browser to the left half with Fn + Control + Left Arrow, then decide you want it back at its original size. Which shortcut does this, and does it also move the window to another Space?
Show answer
Fn + Control + R returns the window to its previous size and position. It does not change Spaces. Tiling and restoring both happen within the current Space.
Exercise
Control + Left Arrow works on the desktop but not inside your terminal app, where it moves the cursor by one word. What is the cause, and what can you do?
Show answer
The terminal receives the key combination first and uses it for word movement, so macOS never sees it as a Space shortcut. Remap the Mission Control shortcuts in System Settings > Keyboard > Keyboard Shortcuts > Mission Control to a combination the terminal does not use, such as Control + Option + Left Arrow. Alternatively, change the terminal's own key binding.