Using an external keyboard, wiping down the keys, or keeping a small child from typing into your work? You can turn off a laptop’s built-in keyboard on Windows 11 and turn it back on later. Connect another keyboard or a mouse first, then in Device Manager right-click the laptop keyboard and choose Disable device. To bring it back, choose Enable device in the same menu.
Pick a method by what you need
Each route below is reversible. They differ in whether the keyboard stays off after a restart and in which edition of Windows 11 you need.
| Your goal | Method | After a restart | Windows 11 edition |
|---|---|---|---|
| Off for a while, quick to undo | Device Manager, Disable device | Normally stays off until you enable it | Any |
| Disable device is not offered | PnPUtil from an administrator command prompt | Normally stays off until you enable it, if PnPUtil accepts the device | Any |
| Off just for a few minutes | Device Manager, Uninstall device | Comes back: Windows reinstalls the keyboard | Any |
| Stop Windows from ever setting the keyboard up again | Group Policy device installation restriction | Stays off until you remove the policy | Pro, Enterprise or Education |
| Stop all typing for a moment, without changing drivers | Lock the PC or the keyboard | Not applicable | Any |
If you only need the keyboard ignored while you step away or clean the screen, locking is lighter than disabling; see how to lock your keyboard on Windows.
Set up a way back in first
Once the built-in keyboard is off, you need another way to type, including at the sign-in screen after a restart. Set one of these up and test it before you change anything:
- An external keyboard. A USB or Bluetooth keyboard is the obvious choice. Make sure it types in Windows now, before the laptop keyboard goes off. A Bluetooth keyboard may not connect until Windows has started, so a wired one is the safer fallback.
- A mouse or the touchpad. With a pointer you can open Device Manager and re-enable the keyboard without typing at all.
- The On-Screen Keyboard. Go to Start > Settings > Accessibility > Keyboard and turn on On-Screen Keyboard. At the sign-in screen, select the Accessibility button in the lower right corner and choose On-Screen Keyboard to type your PIN or password. Microsoft describes both routes on its On-Screen Keyboard page.
If liquid has just gone into the keyboard, shut the laptop down and unplug it instead. Disabling the keyboard in Windows only stops Windows from reading keypresses; it does nothing to protect the hardware.
Find the laptop’s own keyboard in Device Manager
Disabling the wrong entry can switch off the external keyboard you were counting on, so identify the right one first.
- Right-click Start and choose Device Manager, or press Windows + R, type devmgmt.msc and press Enter. Other ways are listed in opening Device Manager in Windows 11.
- Expand Keyboards. You may see several entries, often with generic names such as a HID keyboard device or a standard PS/2 keyboard.
- Unplug or turn off the external keyboard and watch the list. The entry that stays is usually the built-in keyboard. Plug the external one back in when you know which is which.
- To double-check, right-click the entry, choose Properties and look at the General tab. The location shown there often says whether the device sits on an internal connection or a USB port.
Many laptops connect their built-in keyboard through a PS/2-type internal connection, so a PS/2 entry is a strong hint. Some newer laptops present it as a HID device instead, which is why the unplug test is the more reliable check.
Turn the keyboard off with Disable device
- In Device Manager, right-click the built-in keyboard entry.
- Choose Disable device. If Windows asks you to confirm, select Yes.
- If Windows says a restart is needed, restart and sign in with the external keyboard or the On-Screen Keyboard.
- Press a few keys on the laptop keyboard to check that nothing happens, then type with the external keyboard to check that it still works.
A disabled device shows a small down arrow on its icon in Device Manager. If you open its Properties, the status tells you the device is disabled. Microsoft’s steps for turning a touchscreen off and on use the same Disable device and Enable device commands in Device Manager.
Turn it back on
- Open Device Manager with the mouse or the external keyboard.
- Expand Keyboards, right-click the entry with the down arrow and choose Enable device.
- Type on the laptop keyboard to confirm it responds. If it does not, restart once.
If the laptop keyboard still seems stuck afterward, the cause may be a lock key or an accessibility setting rather than the driver; getting a stuck Windows keyboard working again covers those checks.
When Disable device is missing
On some laptops, the right-click menu for the built-in keyboard offers Uninstall device but no Disable option. You have two choices.
Why Uninstall device is only temporary
Uninstalling removes the keyboard’s driver for the moment, so the keys stop working. The hardware is still connected, though, and Windows finds it again and reinstalls it the next time it checks for hardware: at the next restart, or right away if you select Action > Scan for hardware changes in Device Manager. That makes Uninstall fine for a quick cleaning session and wrong for anything longer. Turning off automatic driver updates, as some older advice suggests, does not stop this.
Disable it with PnPUtil
PnPUtil is a command-line tool built into Windows that can disable a device by its instance ID, a unique name Windows gives each piece of hardware. It works on Windows 11 Home as well as Pro.
- Right-click Start, choose Terminal (Admin), and approve the prompt. PnPUtil needs an administrator command prompt.
- Run pnputil /enum-devices /class Keyboard to list keyboard devices with their instance IDs, descriptions and status.
- Find the built-in keyboard, using the same name you identified in Device Manager. You can also copy the ID from Device Manager: open the keyboard’s Properties, select the Details tab and choose Device instance path.
- Run pnputil /disable-device “<instance ID>”, pasting the ID between the quotes.
- Restart if PnPUtil reports that one is needed, then test both keyboards.
If PnPUtil reports that the device cannot be disabled, stop there rather than forcing it, and use an external keyboard with the lock or Group Policy options instead.
To undo it, run pnputil /enable-device “<instance ID>” with the same ID. Microsoft lists these commands on its PnPUtil command syntax page. PnPUtil also has a force option for devices Windows treats as critical; do not use it here, because it can leave you without input if you pick the wrong device.
Keep it off after restarts and updates
Disable device and PnPUtil are enough for most people. If the keyboard keeps coming back, for example after a major Windows update or a driver package from the laptop maker, a device installation restriction stops Windows from installing that exact device. This uses the Local Group Policy Editor, which is included in Windows 11 Pro, Enterprise and Education but not in Home.
Read this warning before you start: this policy can apply to devices that are already installed, and Microsoft notes that this can make crucial devices unusable. Use the built-in keyboard’s exact instance ID, never a broad hardware class, so the external keyboard is not caught by the same rule.
- Copy the built-in keyboard’s instance ID as described in the PnPUtil steps.
- 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 instance IDs and set it to Enabled.
- Select Show, paste the instance ID into the list and select OK.
- Check Also apply to matching devices that are already installed, then select OK.
- Restart and test both keyboards.
To undo it, set the same policy to Not Configured, select OK, then in Device Manager select Action > Scan for hardware changes or restart. Microsoft explains how these restrictions work in Manage Device Installation with Group Policy.
Some guides suggest the broader policy that blocks every device not described by other settings, or forcing an incompatible driver onto the keyboard. Both can disable far more than the keyboard or leave the device in an error state, so they are not covered here.
Settings that look right but do not turn the keyboard off
- Touch keyboard settings. Settings > Personalization > Taskbar > System tray icons > Touch keyboard controls the on-screen touch keyboard icon (Never, Always, or When no keyboard attached). It has no effect on the physical keys. Microsoft covers it on its touch keyboard page.
- Typing settings. The options under Time & language > Typing change suggestions and autocorrect, not whether the keyboard works.
- Fn Lock and keyboard lock keys. Some laptops have a key combination that locks the keyboard or the function keys. These vary by maker and model, so check the laptop’s manual; they are not a Windows setting.
- Resetting keyboard settings. If the goal is to fix odd behavior rather than switch the keyboard off, resetting keyboard settings in Windows 11 may solve it without disabling anything.
Side effects to check afterward
- Fn hotkeys. Brightness, volume and similar keys on the laptop keyboard usually stop working along with the rest of it. Use Quick Settings on the taskbar for those instead.
- Touchpad. The touchpad is normally a separate device, but on some models it shares a controller with the keyboard. Test it right after disabling, while you still have the external keyboard to undo the change.
- Before Windows starts. Disabling in Windows does not affect the firmware setup screen (BIOS or UEFI) or a BitLocker recovery prompt, because Windows is not running yet. The laptop keyboard keeps working there.
- Other user accounts. The change applies to the whole PC, not just your account.
Work laptops, Windows 10 and faulty keyboards
On a laptop managed by an employer or school, Device Manager changes may be blocked, or reversed by management tools. Ask IT before trying, especially before using Group Policy, since local policies can conflict with the organization’s own.
The same Device Manager and PnPUtil steps work on Windows 10 (PnPUtil’s disable and enable commands need Windows 10 version 2004 or later). Windows 10 reached end of support on October 14, 2025, so if the laptop still runs it, consider moving to Windows 11 or Extended Security Updates.
If the keyboard types by itself, repeats keys or has keys that stopped working, disabling it works around a hardware problem rather than fixing it. Most laptop makers include hardware diagnostics you can start from the firmware or a support app; the maker’s support site lists the steps for your model, and a failing keyboard may be covered by warranty.
Laptop keyboard questions
Can I disable only some keys instead of the whole keyboard?
Windows 11 has no built-in setting for that. A remapping tool can turn individual keys into nothing; see remapping keyboard keys in Windows for free options.
Does this work on Windows 11 Home?
Yes, for Device Manager and PnPUtil. Only the Group Policy method needs Pro, Enterprise or Education.
Will a Windows update turn the laptop keyboard back on?
A disabled device normally stays disabled, but a driver package from the laptop maker or a major update can reinstall it. If that happens, disable it again, or use the device installation restriction if your edition has Group Policy.
Can I disable the keyboard from the sign-in screen?
No. Device Manager and PnPUtil need you to be signed in, and PnPUtil needs administrator rights. Sign in first, using the On-Screen Keyboard if needed.

Kermit Matthews runs Live2Tech from just outside Philadelphia. He is an IT specialist with over 20 years of experience, from a university help desk to small-business IT, IT management and his own consulting practice, and has written tech guides full time since 2020. Steps are checked against the current software on a real device or the maker’s official documentation. More about Kermit.