Sub topic 9
System shortcuts: lock screen, force quit, emoji picker
This chapter covers the shortcuts that talk to macOS itself, not to the app in front of you. You use them to lock the screen, stop a frozen app, sleep or shut down the Mac, and insert emoji and symbols. They are used less often than copy and paste, but you need them at awkward moments, such as when an app freezes or you leave your desk.
Prerequisites
This chapter assumes you have read the earlier chapters on modifier keys and notation. You should be able to read ⌘, ⌥, ⌃, and ⇧ as Command, Option, Control, and Shift. You should also know how to open System Settings and the Terminal app. The Terminal section is optional.
Some shortcuts here use keys that vary by Mac:
- Power or Touch ID key: MacBooks with Touch ID have no separate power key. The Touch ID button at the top right is the power key.
- Eject key (⏏): Older Macs with an optical drive have it. Where it is missing, the power key takes its place in shortcuts.
- Globe key (🌐): This key replaced the Fn label on newer keyboards. It acts as the Fn key, and you can also set it to open the emoji picker.
- Escape key (⎋): Written as ⎋ in shortcut notation.
The shortcuts at a glance
| Shortcut | What it does | When to use it |
|---|---|---|
| ⌃⌘Q | Lock the screen immediately | Leaving your desk |
| ⌃⇧⏏ or ⌃⇧Power | Put the display to sleep | Dim the screen without closing apps |
| ⌥⌘⏏ or ⌥⌘Power | Put the Mac to sleep | Pause the whole Mac quickly |
| ⌃⏏ or ⌃Power | Show the restart, sleep, and shut down dialog | Shutting down or restarting |
| ⇧⌘Q | Log out of your account, after a confirmation | Handing the Mac to someone else |
| ⌥⇧⌘Q | Log out at once, with no confirmation | Same, when you are sure |
| ⌥⌘⎋ | Open the Force Quit Applications window | An app is frozen |
| ⌃⌘Space | Open the emoji and symbols picker | Typing emoji, arrows, or math symbols |
| 🌐 E | Open the emoji picker on keyboards with a globe key | Same, one-handed |
Locking the screen
Press ⌃⌘Q to lock the screen. Your apps keep running and your documents stay open. Only the login screen appears, and it asks for your password or Touch ID. Downloads continue, music keeps playing, and a long export finishes.
Lock the screen every time you step away. It takes one chord, which is two or more keys pressed together, and it prevents someone else from reading your mail or using your accounts.
Locking versus sleeping the display
Putting the display to sleep with ⌃⇧⏏ turns the screen off. The Mac only asks for a password afterwards if you allow it. Check the setting before you rely on it:
- Open System Settings and choose Lock Screen.
- Find "Require password after screen saver begins or display is turned off".
- Set it to "Immediately".
If the setting is "After 5 minutes", a display-sleep shortcut leaves the Mac open for five minutes. ⌃⌘Q does not have this gap, so prefer it when you want to lock the Mac.
Sleep, log out, and shut down
Sleep (⌥⌘Power) pauses the Mac and keeps its state in memory. Waking it is fast. Log out (⇧⌘Q) closes all your apps and returns to the login window, so other users can sign in. The shut down dialog (⌃Power) offers Restart, Sleep, and Shut Down. In it, press Return to accept the highlighted default, or press the first letter shown on a button.
Log out asks you to confirm and gives you 60 seconds to cancel. Adding Option (⌥⇧⌘Q) skips that prompt. Apps with unsaved documents still ask to save, but the shortcut is easy to press by accident, so use it deliberately.
Force quitting a frozen app
Force quit is what you use when an app stops responding. It ends the app at once and does not let it save. Any unsaved changes in that app are lost, so try ordinary quitting first.
The steps
- Press ⌥⌘⎋. The Force Quit Applications window opens, even when the frozen app has stolen focus.
- Use the arrow keys or the mouse to select the app. A name shown in red with "Not Responding" is the likely culprit.
- Press Return, or click Force Quit, then confirm.
The same window can relaunch Finder. If Finder is selected, the button reads Relaunch and does not quit it.
Other ways to force quit
Hold ⌥ while you click an app's icon in the Dock with the secondary click, which is a right-click or two-finger tap. The menu then shows Force Quit in place of Quit. Another route is the Apple menu, then Force Quit. These work too, but the keyboard chord is faster when the screen is crawling.
When the Mac is slow and no single app looks frozen, Activity Monitor is better. Find it with Spotlight (⌘Space). It shows how much CPU and memory each process uses. Select a process and press ⌘⌥⎋ there, or use the stop button in the toolbar.
Force quit from the Terminal
You can also force quit from the Terminal. The pmset command also controls display and system sleep. These commands run as shown on current macOS versions.
# Put the display to sleep (locks the Mac if the password is required immediately)
pmset displaysleepnow
# Put the whole Mac to sleep
pmset sleepnow
# Force quit an app by its exact process name
killall -9 "Safari"
# Restart Finder, which is also what the Relaunch button does
killall Finderkillall -9 sends a signal that the app cannot catch, the same as Force Quit. Leave off -9 to send a polite quit request first. If no process has that name, killall prints "No matching processes". Names are case sensitive, and they must match what Activity Monitor shows.
The emoji and symbols picker
Press ⌃⌘Space in any text field, and a small picker opens at the cursor. It works in Messages, Mail, Notes, browsers, and most other apps with text entry. On keyboards with a globe key, 🌐 E does the same.
You can use the picker in these ways:
- Type to search. Start typing "heart", "arrow", or "check" and the grid filters.
- Browse categories. Use the tabs at the bottom, such as People, Objects, and Symbols.
- Insert. Press Return on the highlighted item, or click it. The picker closes and the character appears at your cursor.
- Pick a skin tone. Press and hold an emoji that supports tones to see the variants.
- Find recents. The Frequently Used section keeps the characters you insert most often.
The expanded picker also lists arrows, math signs, currency, and other symbols. These are real text, not images, so they paste into code comments, spreadsheets, and filenames. Some older tools do not support every character, so test an unusual emoji before using it in a filename.
Setting the globe key
If pressing 🌐 does something else, such as starting dictation, change it:
- Open System Settings and choose Keyboard.
- Find "Press 🌐 key to".
- Choose "Show Emoji & Symbols".
If your keyboard has no globe key, ⌃⌘Space always works. The picker also appears from the Edit menu in most apps, as "Emoji & Symbols". This is the fallback in apps that block shortcut conflicts.
Common errors and gotchas
- ⌃⌘Q seems to do nothing. Another app may have claimed the chord. Check System Settings, Keyboard, Keyboard Shortcuts, and look for a duplicate. An older Mac running a version before High Sierra (macOS 10.13) also lacks this shortcut. Use the Apple menu's Lock Screen item instead.
- Confusing ⌃⌘Q with ⌘Q. The first locks the screen, and the second quits the front app. Only the extra Control key separates them, so press it first and hold it.
- Force Quit window lists nothing wrong. An app can look frozen while it is busy, such as during a large export. Wait 30 seconds before you force quit it.
- The picker closes before inserting. Make sure a text field has focus. If the cursor is not blinking in a field, the picker cannot paste anywhere.
- Remote desktops and virtual machines. A remote session may capture these chords before your Mac does. Your Mac may then lock itself, or a shortcut may go to the other system. Release capture first, or use the menu items.
Exercises
Exercise
You walk away from your desk and want the Mac locked, with a download still running. Which shortcut do you press, and why not display sleep?
Show answer
Press ⌃⌘Q. It locks the screen and the download continues. Display sleep (⌃⇧⏏) only turns the screen off, and the Mac may stay unlocked until the password delay from Lock Screen settings passes.
Exercise
An app is frozen and its menu bar does not respond. Give the full sequence of keys to force quit it, and name two other ways to do the same thing.
Show answer
Press ⌥⌘⎋, select the app in the list, then press Return or click Force Quit and confirm. Other ways: hold ⌥ and secondary-click the app's Dock icon, then choose Force Quit; or choose Force Quit from the Apple menu. In Terminal, killall -9 followed by the app name also works.
Exercise
Pressing 🌐 starts dictation, not the emoji picker. How do you fix it, and what shortcut works regardless of that setting?
Show answer
Open System Settings, then Keyboard, and set "Press 🌐 key to" to "Show Emoji & Symbols". The shortcut ⌃⌘Space opens the picker whatever that setting is.