how to lock screen from keyboard on mac code example Example: shortcut key to lock mac screen CTRL + CMD + Q