How to Lock Your Keyboard on Windows

The quickest way to lock your keyboard on Windows is to lock the whole PC: press Windows + L. Nothing typed on the keyboard does anything until you sign in again. Windows doesn’t have a built-in switch that locks only the keyboard while you keep watching the screen; for that, you can disable a laptop’s built-in keyboard in Device Manager or use a trusted third-party keyboard-lock tool.

Quick Answer

Press Windows + L to lock the PC. To stop a laptop keyboard entirely, disable it in Device Manager.

Method 1: Lock the PC

  1. Press Windows + L. The lock screen appears.
  2. To unlock, press any key and sign in with your PIN, password or Windows Hello.
Keyboard shortcut keys Windows + L to lock the PC
Windows + L locks the PC instantly.

Method 2: Lock Automatically

  • Dynamic Lock: Pair your phone with Bluetooth, then turn on Settings > Accounts > Sign-in options > Dynamic lock. Windows locks when you walk away with your phone.
  • Screen timeout plus sign-in: Set Sign-in options > If you’ve been away, when should Windows require you to sign in again.

Method 3: Disable a Laptop Keyboard

Useful when an external keyboard is attached or a cat walks across the keys. See disabling a laptop keyboard. Keep a mouse or external keyboard handy so you can turn it back on.

Options Compared

Option Screen visible? Best for
Windows + L No (lock screen) Stepping away
Dynamic Lock No Automatic security
Disable keyboard in Device Manager Yes Cleaning keys, using an external keyboard
Third-party keyboard locker Yes Kids or pets while watching video

Troubleshooting

  • Keyboard seems locked but you didn’t lock it: Check Num Lock, Filter Keys (Settings > Accessibility > Keyboard), or a keyboard’s own lock key.
  • Windows + L doesn’t work: A policy may block locking, or the Windows key is disabled by a gaming keyboard.
  • Want the Windows key back? See unlocking the Windows key.

Frequently Asked Questions

Does locking stop running programs?

No. Apps keep running; only input is blocked until you sign in.

Can I lock only the mouse?

Not built in; disable a touchpad in Settings > Bluetooth & devices > Touchpad.

Summary

  1. Press Windows + L to lock.
  2. Use Dynamic Lock for automatic locking.
  3. Disable a laptop keyboard in Device Manager if needed.
  4. Check Filter Keys if the keyboard stops unexpectedly.