Keyboard shortcuts for Shut down, restart, and sleep
You can use the keyboard shortcuts outlined in this article to shut down or restart Macs that have a keyboard with an Eject key.
Note: Key names are separated by a hyphen (-), such as "Control-Eject". You do not type the hyphen as part of the key combination.
The dialog box "Are you sure you want to shut down your computer now?" appears with options to Restart, Sleep, Cancel or Shut Down. After the dialog appears, press the R key to Restart, press the S key to Sleep, press the Esc key to Cancel, or press the Return key to Shut Down.
Quits all applications (after giving you a chance to save changes to open documents) and restarts the computer.
Quits all applications (after giving you a chance to save changes to open documents) and shuts the computer down.
Puts the computer to sleep.
Puts all displays to sleep.
Power button (if the computer is not responding)
Press and hold the power button on the computer for six seconds to shut down the computer.