Windows 11 has no on/off switch for a laptop’s built-in keyboard, but you can still stop it from working. The quickest method is to uninstall the keyboard in Device Manager, which disables it until the next restart. For a longer-lasting fix, you can assign it an incompatible driver or block it with Group Policy. This guide explains each method, how to undo it, and what to check first so you are never left without a way to type.
Why People Disable a Laptop Keyboard
- A faulty keyboard that types random characters, repeats keys or registers presses on its own, often after a spill.
- Using an external keyboard on a stand or docking setup, where the laptop keyboard gets pressed by accident.
- Cleaning the keys without closing your apps.
- Children or pets who keep pressing keys while a video or call is running.
If the keyboard is faulty, disabling it is a workaround rather than a fix. Many laptop makers offer built-in hardware diagnostics, usually started by pressing a key such as F12 or F2 at startup, which can confirm whether the keyboard has failed and is worth repairing under warranty.
Before You Start
- Connect an external keyboard first, either USB or Bluetooth, and check that it types. You will need it to sign in and to undo these changes.
- Know your PIN or password. If the external keyboard stops working, you can still sign in with the On-Screen Keyboard, which opens from the accessibility button on the sign-in screen.
- Consider the real problem. If keys are typing on their own or sticking, a driver update, cleaning, or a repair may fix it without disabling the keyboard.
Method 1: Uninstall the Keyboard in Device Manager (Temporary)
- Right-click Start and choose Device Manager.
- Expand Keyboards.
- Find the built-in keyboard. It is usually named Standard PS/2 Keyboard or HID Keyboard Device. If there are several, unplug the external keyboard to see which entry disappears; the one that stays is the built-in keyboard.
- Right-click it and choose Disable device if that option appears. On most laptops it does not, so choose Uninstall device and confirm.
The keyboard stops working straight away. Because Windows reinstalls its built-in keyboard driver automatically, the keyboard usually comes back the next time you restart. That makes this method ideal for cleaning the keyboard, stopping a stuck key for a session, or keeping a cat off the keys.
Method 2: Install an Incompatible Driver (Stays Disabled After Restart)
This widely used workaround replaces the keyboard’s driver with one that does not match the hardware, so Windows cannot use it. It is reversible, but follow the steps carefully.
- In Device Manager, right-click the built-in keyboard and choose Update driver.
- Choose Browse my computer for drivers, then Let me pick from a list of available drivers on my computer.
- Untick Show compatible hardware.
- Pick any other manufacturer and model from the lists, click Next, and click Yes to the warning.
- Restart when prompted.
After the restart, the keyboard shows a yellow warning icon in Device Manager and does not respond. To undo it, right-click the device, choose Update driver > Browse my computer > Let me pick, tick Show compatible hardware again, select the standard keyboard driver and restart.
Method 3: Block the Keyboard With Group Policy (Pro and Above)
On Windows 11 Pro, Enterprise and Education, you can stop Windows from reinstalling the specific keyboard device. Avoid the broad policy that blocks all devices not described by other settings, because it also blocks new mice, printers and USB drives.
- In Device Manager, open the built-in keyboard’s Properties, go to the Details tab, choose Hardware Ids and copy the first value.
- Press Windows + R, type gpedit.msc and press Enter.
- Go to Computer Configuration > Administrative Templates > System > Device Installation > Device Installation Restrictions.
- Open Prevent installation of devices that match any of these device IDs, choose Enabled, click Show, paste the hardware ID and click OK.
- Uninstall the keyboard in Device Manager as in Method 1, then restart.
These settings are described in Microsoft’s device installation policy documentation. To re-enable the keyboard, set the policy back to Not configured, then choose Action > Scan for hardware changes in Device Manager.
Which Method Should You Use?
- Cleaning, a pet, or a quick break: Method 1.
- A faulty keyboard you want off until it is repaired: Method 2, or Method 3 on Pro editions.
- Only the touchpad or a few keys are the problem: you may not need to disable the whole keyboard. Check for a driver update from your laptop maker first.
Alternatives That Do Not Change Drivers
If you only need the keyboard out of the way for a few minutes, you do not have to touch Device Manager at all. Press Windows + L to lock the PC, which stops anyone from typing into your apps until you sign back in. Free keyboard-locking utilities can also block all keys until you press an unlock combination, which is handy for cleaning, but download them only from the developer’s official site.
Troubleshooting
The keyboard came back after a restart
That is normal after Method 1. Use Method 2 or Method 3 if you want it to stay off.
I disabled the wrong keyboard
Use the On-Screen Keyboard or touchpad to open Device Manager, then choose Action > Scan for hardware changes, or reverse the driver change described in Method 2.
The external keyboard also stopped working
Some laptops list external keyboards under the same driver. Undo the change, then make sure you select only the built-in entry, which stays in the list when the external keyboard is unplugged.
There is no Disable device option
Many built-in laptop keyboards only offer Uninstall device. Use Method 2 or 3 for a lasting result.
Frequently Asked Questions
Can I re-enable the laptop keyboard later?
Yes. Restart after Method 1, restore the compatible driver after Method 2, or set the policy to Not configured and scan for hardware changes after Method 3.
Is it safe to disable a laptop keyboard?
Yes, as long as you have another way to type. Keep an external keyboard connected and remember the On-Screen Keyboard is available on the sign-in screen.
Will this disable the keyboard in the BIOS too?
No. These methods only work inside Windows, so the built-in keyboard still works in the BIOS or UEFI setup screen and boot menu.
Does this work on Windows 10?
Yes. The steps to disable a laptop keyboard in Windows 10 are nearly identical.

Matt Jacobs has been working as an IT consultant for small businesses since receiving his Master’s degree in 2003. While he still does some consulting work, his primary focus now is on creating technology support content for SupportYourTech.com.
His work can be found on many websites and focuses on topics such as Microsoft Office, Apple devices, Android devices, Photoshop, and more.