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
- Press Windows + L. The lock screen appears.
- To unlock, press any key and sign in with your PIN, password or Windows Hello.

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
- Press Windows + L to lock.
- Use Dynamic Lock for automatic locking.
- Disable a laptop keyboard in Device Manager if needed.
- Check Filter Keys if the keyboard stops unexpectedly.

Kermit Matthews runs Live2Tech from just outside Philadelphia. He started on a university help desk, spent years as the IT person for small businesses, and has been writing tech guides full time since 2020. Each guide is checked on a device he owns, and re-checked when a menu moves. More about Kermit.