keyboard shortcut to lock your screen mac code example Example: shortcut key to lock mac screen CTRL + CMD + Q