Why you might want to disable your keyboard
Disabling your laptop keyboard is useful when you spill liquid on it, when keys stick or stop working, or when you want to use an external keyboard without accidental key presses. You might also disable it temporarily while cleaning, or if a child is using your laptop and you want to prevent them from typing. The keyboard stays physically attached — you are just telling your operating system to ignore input from it.
The method depends on whether you use Windows or macOS, and whether you want to disable it temporarily or permanently. Some approaches take seconds; others require a restart. Most people can reverse the change just as easily if they change their mind.
Key Takeaways
- Windows users can disable the keyboard through Device Manager by right-clicking the keyboard entry and selecting "Disable device," which takes about one minute.
- macOS does not have a built-in system setting to disable the keyboard, but you can use third-party apps like Karabiner or disable it through System Preferences accessibility settings as a workaround.
- Disabling the keyboard in Device Manager is reversible — you can re-enable it the same way if you need it again.
- If you cannot access Device Manager because you cannot use your keyboard, you can use an external mouse and keyboard, or boot into Safe Mode with Networking.
Disabling the keyboard in Windows using Device Manager
Open Device Manager by right-clicking the Start button and selecting "Device Manager" from the menu. If that option does not appear, press Windows key + X and look for Device Manager in the list. You can also search for "Device Manager" in the Windows search box.
In Device Manager, find the "Keyboards" category and click the arrow next to it to expand the list. You will see your keyboard listed — it is usually called "Standard PS/2 Keyboard" or something similar. Right-click on it and select "Disable device." A dialog box will ask you to confirm; click "Yes." Your keyboard will stop working immediately.
To re-enable it later, open Device Manager again, find the keyboard entry (it may now show a down arrow or different icon), right-click it, and select "Enable device." The keyboard will work again after a few seconds.
Disabling the keyboard in Windows using keyboard settings
If you want a less technical approach, you can disable the keyboard through Settings. Press Windows key + I to open Settings, then go to "Bluetooth & devices" and select "Keyboards." Look for your built-in keyboard in the list.
Some Windows versions show a "Disconnect" or "Remove device" option here, but this does not always fully disable the keyboard — it may reconnect automatically. Device Manager (described above) is more reliable for a complete disable. This Settings method works better if you are trying to stop a Bluetooth keyboard from connecting, rather than disabling the built-in keyboard.
Disabling the keyboard on macOS
macOS does not have a straightforward system setting to disable the built-in keyboard the way Windows does. Apple assumes most users will simply use an external keyboard if the built-in one has a problem. However, you have a few options.
The simplest workaround is to use an accessibility feature. Go to System Preferences (or System Settings on newer Macs), select "Accessibility," then choose "Keyboard." Enable "Sticky Keys" or "Slow Keys" — these do not disable the keyboard, but they change how it responds and can prevent accidental input. You can also enable "Mouse Keys" to control your cursor without the keyboard.
For a more complete solution, download a third-party app like Karabiner-Elements (free and open-source) or similar keyboard remapping software. These apps let you disable specific keys or the entire keyboard. Karabiner is available from GitHub and does not require payment.
What to do if you cannot use your keyboard to disable it
If your keyboard is broken or stuck and you cannot type to open Device Manager, use an external USB keyboard or mouse to navigate. Plug in the external device, and your laptop will recognize it immediately — you can then use it to open Device Manager and disable the built-in keyboard.
If you do not have an external keyboard available, restart your laptop in Safe Mode with Networking. On Windows 10 or 11, hold Shift while clicking the restart button in the power menu, then select "Troubleshoot," "Advanced options," and "Startup Settings." Choose Safe Mode with Networking and restart. In Safe Mode, you may be able to use the keyboard long enough to open Device Manager, or you can connect an external keyboard more easily.
Disabling the keyboard temporarily while cleaning
If you are cleaning your keyboard and want to prevent accidental key presses while it is wet, the fastest method is to simply disconnect the power. Shut down your laptop completely and unplug it (or let the battery drain). This ensures no input can register. Wait for the keyboard to dry completely before powering on again.
Alternatively, if you want to keep your laptop on while cleaning, use Device Manager to disable the keyboard as described above. This is safer than trying to clean while the laptop is running, because you avoid the risk of liquid reaching internal components while power is flowing through them.
Re-enabling your keyboard after disabling it
To turn your keyboard back on in Windows, open Device Manager again, find the keyboard entry, right-click it, and select "Enable device." The keyboard will work within a few seconds. You do not need to restart your laptop.
If you disabled the keyboard and now cannot type to open Device Manager, use an external keyboard or mouse to navigate. If you have neither, restart your laptop — Windows will often re-enable disabled devices automatically on startup, though this is not may provide. The safest approach is to have an external keyboard available before you disable the built-in one.
Frequently Asked Questions
Will disabling my keyboard in Device Manager damage it?
No. Disabling a device in Device Manager only tells your operating system to ignore it. The hardware itself is not harmed. You can re-enable it at any time and it will work normally again.
Can I disable just one key instead of the whole keyboard?
Windows Device Manager does not let you disable individual keys. However, you can use third-party software like AutoHotkey (free) to remap or disable specific keys. On macOS, Karabiner-Elements lets you disable individual keys. Both require some setup but give you fine control.
What if my keyboard does not appear in Device Manager?
Some laptops use a different driver or connection method. Try searching for "HID-compliant keyboard" or look under "Human Interface Devices" instead of the Keyboards category. If you still cannot find it, your keyboard may be integrated into a touchpad or input device listed under a different name — check your laptop manufacturer's support page for the exact device name.
Does disabling the keyboard affect my trackpad?
No. The trackpad is a separate device. Disabling the keyboard in Device Manager only affects keyboard input. Your trackpad will continue to work normally.
Can I disable the keyboard without restarting?
Yes. Both Device Manager and Settings changes take effect immediately without a restart. However, if you re-enable the keyboard, you may need to restart if it does not respond right away — wait 10 to 15 seconds first.