How to Lock Your Computer In this article To ensure your computer is secure when you are not at it, please lock your PC with the simple keyboard shortcut below. Select the Windows key and "L" key at the same time to lock your computer. On a Mac Control-Command-Q or ^+ ⌘ + Q