If you have a keyboard with an eject key, you can use ⌃⌥⌘ (control-option-command-eject).

If you have a laptop with a power key in place of an eject key, the power key can be substituted for eject in OS X v10.8 (Mountain Lion) and newer versions of OS X.

Other keyboard shortcuts:

  • ⌃⌘ restarts the computer
  • ⌥⌘ puts the computer to sleep
  • ⌃⇧ puts displays to sleep
  • ⌃ opens the dialog shown when pressing a power button or power key
  • ⇧⌘Q logs out after showing a confirmation dialog
  • ⌥⇧⌘Q logs out without showing a confirmation dialog

My keyboard doesn't have an eject or power key, so I normally use Alfred:

You could also assign a keyboard shortcut to a script like this:

tell app "System Events" to shut down

The shut down command sends loginwindow a kAEShutDown Apple event, which starts a normal shut down sequence as described in the Daemons and Services Programming Guide. sudo shutdown -h now does not for example allow graphical applications to ask for confirmation if there are unsaved changes.

Answer from Lri on Stack Exchange
🌐
Apple Support
support.apple.com › en-us › 102650
Mac keyboard shortcuts - Apple Support
1 week ago - Fn-D: Start or stop dictation. You may be able to set a different dictation shortcut in Keyboard settings. Fn-N: Show or hide Notification Center. Fn-Shift-A: Show or hide Apps (macOS Tahoe 26 or later) or Launchpad (earlier versions of macOS).
🌐
Uvicorn
uvicorn.dev
Uvicorn
Staggers worker restarts to avoid all workers restarting simultaneously. [default: 0] --timeout-keep-alive INTEGER Close Keep-Alive connections if no new data is received within this timeout (in seconds). [default: 5] --timeout-graceful-shutdown INTEGER Maximum number of seconds to wait for graceful shutdown.
Discussions

Keyboard shortcut for powering down MacBook Pro with Touch Bar? - Ask Different
Holding "fn" key and selecting ... up the shutdown prompt. Holding "fn" key and selecting "F10" will show desktop, holding "F11" will show dashboard. ... Out of curiosity I renamed the Menu Title "Shut Down" without the trailing ellipses. When I tried this "new" shortcut it immediately powered off the computer without any prompt. I can't view the Menu Title of the "Shut Down..." prompt though. Is there an advanced Mac OS tips and ... More on apple.stackexchange.com
🌐 apple.stackexchange.com
How to set up a keyboard shortcut for "Shut Down..."? | MacRumors Forums
I've just bought the new MacBook Pro (Apple M2 Max, 2023 running Ventura 13.4 and can't see to work out how to do it. This official instruction does not work (see screenshot) Is there a way to program a keyboard shortcut to quit all apps and shut down the computer? Thanks so much! Nik ... As above: set a keyboard shortcut. "Shut Down..." will prompt to shutdown ... More on forums.macrumors.com
🌐 forums.macrumors.com
May 29, 2023
What is "shutdown your mac" keyboard shor… - Apple Community
Control–Option–Command–Power button* or Control–Option–Command–Media Eject : Quit all apps, then shut down your Mac. If any open documents have unsaved changes, you will be asked whether you want to save them. ... So what is the keyboard shortcut for it? Other than Apple Menu > Shutdown. More on discussions.apple.com
🌐 discussions.apple.com
What is the keyboard shortcut for sleep, restart, shut down, or choose option ( out of those three), now that Eject button has been replaced by Touch ID?
Isn’t the Touch ID still a button? More on reddit.com
🌐 r/macbookpro
8
4
November 19, 2021
🌐
Reddit
reddit.com › r/macos › shutdown from keyboard
r/MacOS on Reddit: Shutdown from keyboard
January 13, 2023 -

I've read in numerous places that it's possible to shut down your Mac by holding down Ctrl/Option/Cmd and the power button. However, for me, it just signs me out.

Does this shortcut no longer work or is it only certain devices?

I have a MacBook Pro 13 with Touch Bar and running Ventura 13.1

🌐
Elgato Marketplace
marketplace.elgato.com › stream-deck › plugins
Stream Deck Plugins | Elgato Marketplace
Personalize your Stream Deck with plugins that control your system and apps like Spotify, Twitch, YouTube, OBS Studio, Discord, Teams, Zoom, PowerPoint, and more.
Top answer
1 of 4
4

If you have a keyboard with an eject key, you can use ⌃⌥⌘ (control-option-command-eject).

If you have a laptop with a power key in place of an eject key, the power key can be substituted for eject in OS X v10.8 (Mountain Lion) and newer versions of OS X.

Other keyboard shortcuts:

  • ⌃⌘ restarts the computer
  • ⌥⌘ puts the computer to sleep
  • ⌃⇧ puts displays to sleep
  • ⌃ opens the dialog shown when pressing a power button or power key
  • ⇧⌘Q logs out after showing a confirmation dialog
  • ⌥⇧⌘Q logs out without showing a confirmation dialog

My keyboard doesn't have an eject or power key, so I normally use Alfred:

You could also assign a keyboard shortcut to a script like this:

tell app "System Events" to shut down

The shut down command sends loginwindow a kAEShutDown Apple event, which starts a normal shut down sequence as described in the Daemons and Services Programming Guide. sudo shutdown -h now does not for example allow graphical applications to ask for confirmation if there are unsaved changes.

2 of 4
7

Well, while it's not "keyboard only" per se, you can open up a terminal and type in sudo shutdown -h now, which will send a signal to the kernel to shutdown the computer.

I'm not sure if that was exactly what you were looking for, but it should be a viable solution.

Apparently, another option is to use Command-Option-Control-Media Eject key, which will quit all applications and let you save documents/work and then shuts down the mac.

🌐
Zhorn Software
zhornsoftware.co.uk › caffeine
Caffeine
The icon is shown above - it's the leftmost one in the task tray, and this is all you see. Double-clicking the icon empties the coffee pot (that's what the icon is) and temporarily disables the program. Double-clicking it again refills the pot, and will keep your machine awake.
Find elsewhere
🌐
Apple Support
support.apple.com › guide › mac-help › shut-down-or-restart-your-mac-mchlp2522 › mac
Shut down or restart your Mac - Apple Support
You don’t need to shut down your Mac when connecting or disconnecting cables, such as USB-C, Thunderbolt, or Ethernet. Important: You can force a shutdown if necessary—for example, if your Mac becomes unresponsive—by pressing and holding the power button until your Mac shuts down.
🌐
Flutter
docs.flutter.dev › tools › android-studio
Android Studio and IntelliJ
February 9, 2026 - On Linux (keymap Default for XWin) and Windows the keyboard shortcuts are Control+Alt+; and Control+Backslash. On macOS (keymap Mac OS X 10.5+ copy) the keyboard shortcuts are Command+Option and Command+Backslash.
🌐
Claude
code.claude.com › docs › en › troubleshooting
Troubleshooting - Claude Code Docs
3 days ago - If you’re using Claude Code in JetBrains terminals and the Esc key doesn’t interrupt the agent as expected, this is likely due to a keybinding clash with JetBrains’ default shortcuts.
🌐
Logitech
logitech.com › logitech united states › discover › keyboard shortcut for shutdown: mac & windows | logitech
Keyboard Shortcut for Shutdown: Mac & Windows | Logitech
For those with Intel based Mac ... commands. Depending on your Mac model, you can follow these steps. ... Control + Option + Command + Power/Eject: This keyboard shortcut for shutdown works on Intel based Mac comput...
🌐
CS50 Docs
cs50.readthedocs.io › cs50.dev
Visual Studio Code for CS50 — CS50 Docs
Open VS Code’s command palette, as via Ctrl+Shift+P on Linux, ⇧⌘P on macOS, and Ctrl+Shift+P on Windows, select >Dev Containers - Open Folder in Container…, and open foo.
🌐
Quora
quora.com › How-do-you-shut-down-a-Mac-without-a-mouse
How to shut down a Mac without a mouse - Quora
Answer (1 of 3): There are a number of options - none of them hugely pleasant. The Mac was made to be operated with a mouse. 1. Beg, borrow, or steal a mouse to switch it off. Return mouse afterwards 2. Use the command line - launch terminal through spotlight. Cmd-Space brings up spotlight. Type...
🌐
MacRumors
forums.macrumors.com › macs › macos › macos ventura (13)
How to set up a keyboard shortcut for "Shut Down..."? | MacRumors Forums
May 29, 2023 - I've just bought the new MacBook Pro (Apple M2 Max, 2023 running Ventura 13.4 and can't see to work out how to do it. This official instruction does not work (see screenshot) Is there a way to program a keyboard shortcut to quit all apps and shut down the computer? Thanks so much! Nik ... As above: set a keyboard shortcut. "Shut Down..." will prompt to shutdown "Shut Down" will shut down immediately.
🌐
Microsoft Support
support.microsoft.com › en-us › office › turn-off-copilot-in-microsoft-365-apps-bc7e530b-152d-4123-8e78-edc06f8b85f1
Turn off Copilot in Microsoft 365 apps - Microsoft Support
If you want to turn off Copilot ... or Mac device. When you turn off Copilot in an app, the Copilot icon on the ribbon is disabled and you won't be able to use any Copilot capabilities in that app. As an alternative to turning off Copilot, you can remove the Copilot icon from the ribbon. For more info, see Customize the ribbon in Office. Removing the icon from the ribbon doesn't turn off Copilot; you can still access Copilot through other methods, such as the shortcut ...
🌐
Proton VPN
protonvpn.com › support › proton vpn features › kill switch
What is a kill switch? | Proton VPN
1. Select the Kill switch shortcut on the Home screen (you can also access the kill switch settings via the ⚙ Settings menu). 2. Toggle the Kill switch button on. You can now choose between Standard kill switch and Advanced kill switch. Click Apply when you’re done. Important note: On macOS, the regular kill switch has two known limitations.
🌐
LinkedIn
linkedin.com › pulse › mac-keyboard-shortcuts-sleep-log-out-shut-down-arvind-kumar
Mac Keyboard Shortcuts for Sleep, log out, and shut down shortcuts
February 19, 2023 - Option–Command–Power button or Option–Command–Media Eject : Put your Mac to sleep.
🌐
Apple Community
discussions.apple.com › thread › 254582370
What is "shutdown your mac" keyboard shor… - Apple Community
Control–Option–Command–Power button* or Control–Option–Command–Media Eject : Quit all apps, then shut down your Mac. If any open documents have unsaved changes, you will be asked whether you want to save them. ... So what is the keyboard shortcut for it? Other than Apple Menu > Shutdown.