Below are some useful Apple shortcut keys.

Control + CD Eject button = sleep or shutdown dialog box

Command (Apple) + Option + CD Eject button = sleep

Command (Apple) + Control + CD Eject button = restart immediately

Shift + Command (Apple) + Q = Logout dialog box