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