How to Disable Keyboard on Windows 11
In this article
To disable a keyboard on Windows 11, open Device Manager, find the keyboard under "Keyboards," right-click it, and select "Disable device." This stops that keyboard from sending input until you re-enable it. You can disable a built-in laptop keyboard, a USB keyboard, or a Bluetooth keyboard this way. The steps are the same for all types, but the exact menu labels may differ slightly depending on your Windows 11 version and device manufacturer.
What You'll Need
- A Windows 11 PC with the keyboard you want to disable connected (built-in, USB, or Bluetooth).
- An alternative input method (a mouse, touchscreen, or another keyboard) to navigate while the target keyboard is off.
- Administrator rights on the PC (you'll need to confirm a UAC prompt).
Step-by-Step
- Open Device Manager. Right-click the Start button (or press Win + X) and select Device Manager from the menu. If you don't see it, type "Device Manager" in the Start menu search and click the top result.
- Expand the "Keyboards" section. In Device Manager, find the Keyboards category and click the arrow next to it to expand. You'll see one or more keyboard entries listed, such as "Standard PS/2 Keyboard" or the brand name of your keyboard.
- Identify the correct keyboard. If you have multiple keyboards (e.g., a laptop's built-in keyboard and a USB one), you need to know which one to disable. If unsure, unplug the external keyboard (if any) and see which entry disappears. For a built-in keyboard, it's usually the one that remains when all external keyboards are unplugged.
- Right-click the keyboard entry and select "Disable device" from the context menu. If you don't see "Disable device," it might be because the device is not currently active or you're not an administrator.
- Confirm the prompt. A warning dialog will appear: "Disabling this device will cause it to stop functioning. Do you really want to disable it?" Click Yes.
- Wait for the keyboard to turn off. The keyboard should stop working immediately. You may see the icon in Device Manager change to a down arrow, indicating it's disabled.
- Test with your alternative input. Try typing in a text field. If the disabled keyboard is the only one, you'll need to use the mouse or touchscreen to re-enable it later.
To re-enable the keyboard later, repeat steps 1-3, right-click the disabled keyboard (it will have a down arrow icon), and select "Enable device."
Common Mistakes
- Disabling the wrong keyboard. If you have multiple entries, you might disable the one that's actually your primary input. Always verify by unplugging external keyboards first.
- Not having an alternative input ready. If you disable your only keyboard, you'll be stuck with a mouse or touchscreen. Make sure you have a way to navigate before disabling.
- Choosing "Uninstall device" instead of "Disable device." Uninstalling removes the driver and can cause the keyboard to be reinstalled automatically on reboot, or require a driver reinstall. Disabling is safer and easily reversible.
- Ignoring the UAC prompt. If you don't have admin rights, the disable option may be grayed out. You'll need to log in as an administrator or get an admin to do it.
Tips
- Use for cleaning: Disable the keyboard before cleaning it to avoid accidental keystrokes. Just remember to re-enable it after.
- Disable a laptop keyboard for an external one: If you prefer an external keyboard, disabling the built-in one prevents accidental presses while typing.
- Check for a physical switch: Some laptops have a hardware switch or function key (like F2 or Fn + F2) to disable the built-in keyboard. Check your laptop's manual or the row of function keys for a keyboard icon.
- Use Device Manager for all types: The same method works for USB, Bluetooth, and PS/2 keyboards. For Bluetooth, you can also disable the device in Settings > Bluetooth & devices, but Device Manager is more direct.
Troubleshooting
If the keyboard is still working after you disabled it, or the disable option is missing, try these in order:
- Restart the PC. Sometimes the driver needs a refresh. After restart, check Device Manager again to see if the keyboard is disabled.
- Check for a driver issue. If the keyboard shows a yellow exclamation mark in Device Manager, the driver may be faulty. Right-click and choose "Update driver" or "Uninstall device," then restart (the driver will reinstall).
- Sign out and back in. This can reset the input stack. Press Win + L to lock, then sign back in.
- Try a different USB port. For an external keyboard, a faulty port might cause the device to re-enable. Plug it into another port and disable again.
- Use Settings as an alternative. Go to Settings > Bluetooth & devices > Devices. Find your keyboard under "Keyboards" or "Other devices," click the three-dot menu, and select "Disable device" if the option is available (this works for some Bluetooth keyboards).
- If all else fails, uninstall the keyboard driver. Right-click the keyboard in Device Manager, select "Uninstall device," and restart. Windows will reinstall the driver on boot, but the keyboard will be active again—so this is only a temporary fix, not a permanent disable.
Frequently Asked Questions
Can I disable the keyboard on a laptop without using another keyboard?
Yes, you can use the mouse or touchscreen to navigate Device Manager. Right-click the Start button, select Device Manager, and use the mouse to click through the steps. You don't need a keyboard to disable it.
Will disabling a keyboard affect my mouse or other USB devices?
No, disabling a keyboard only affects that specific keyboard device. Other USB devices like mice, webcams, and storage drives remain unaffected.
How do I re-enable a disabled keyboard?
Open Device Manager, expand "Keyboards," right-click the disabled keyboard (it has a down arrow icon), and select "Enable device." The keyboard will start working again immediately.
Can I disable the keyboard temporarily and have it re-enable automatically on reboot?
No, Windows does not have a built-in option to auto-re-enable a disabled device on reboot. The keyboard will stay disabled until you manually enable it. If you want a temporary disable, you can use the physical switch or function key on some laptops.
Why is the "Disable device" option grayed out?
This usually means you don't have administrator privileges. Log in with an admin account or ask an admin to disable it. It can also happen if the device is not currently active (e.g., a disconnected Bluetooth keyboard).
Can I disable the keyboard using Command Prompt or PowerShell?
Yes, you can use the pnputil command or a PowerShell script with Disable-PnpDevice, but these require admin rights and are more complex. The Device Manager method is simpler and safer for most users.