Why you might want to disable your keyboard

Disabling your laptop keyboard is useful when you have a broken key, spilled liquid on it, or want to force yourself to use an external keyboard. You might also disable it temporarily while cleaning, or if you have a child who keeps pressing random keys while you work. The keyboard stays physically attached — you are just telling your operating system to ignore input from it.

The method you use depends on whether you want a temporary fix (turn it back on in minutes) or a longer-term one (turn it back on next week). Windows and Mac handle this differently, and the steps vary depending on your system version.

Key Takeaways

  • On Windows, you can disable the keyboard through Device Manager by right-clicking the keyboard entry and selecting "Disable device" — this takes 30 seconds and reverses just as quickly.
  • On Mac, System Settings does not have a built-in keyboard disable option, so you will need to use Terminal commands or third-party software instead.
  • Disabling the keyboard in BIOS or UEFI settings is more permanent and survives a restart, but requires you to restart your laptop and navigate firmware menus.
  • If you cannot remember how to re-enable it, you can always use an external keyboard or mouse to undo the change.

Disabling the keyboard on Windows through Device Manager

Device Manager is the fastest way to disable your keyboard on Windows. Open Device Manager by right-clicking the Start button and selecting "Device Manager" from the menu. If that option does not appear, search for "Device Manager" in the Windows search bar and click the result.

Look for "Keyboards" in the list of devices and click the arrow next to it to expand the category. 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" from the menu. Windows will ask you to confirm; click "Yes." Your keyboard will stop working immediately.

To turn it back on, 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 within seconds. This method survives a restart, so your keyboard will still be disabled if you shut down and turn your laptop back on.

Disabling the keyboard on Mac using Terminal

Mac does not have a graphical settings panel to disable the keyboard, so you will need to use Terminal. Open Terminal by pressing Command + Space, typing "Terminal," and pressing Enter. A black text window will appear.

Type the following command and press Enter: defaults write -g com.apple.keyboard.modifiermapping.0 -array '{ HIDKeyboardModifierMappingSrc = 0; HIDKeyboardModifierMappingDst = -1; }' This command remaps your keyboard input to nothing, effectively disabling it. You may need to log out and log back in for the change to take effect.

To re-enable it, open Terminal again and type: defaults delete -g com.apple.keyboard.modifiermapping.0 Then log out and log back in. If you are not comfortable using Terminal, a third-party app like Karabiner or KeyShade can disable your keyboard through a graphical interface instead.

Disabling the keyboard in BIOS or UEFI settings

BIOS and UEFI are firmware menus that run before your operating system starts. Disabling the keyboard here is more permanent than using Device Manager or System Settings, and the change survives restarts and even factory resets. However, you will need to restart your laptop and navigate unfamiliar menus.

Restart your laptop and watch the screen carefully as it boots. You will see a message like "Press F2 to enter Setup" or "Press Del to enter BIOS" — the key varies by manufacturer. Press that key repeatedly until the BIOS menu appears. Look for a section called "Integrated Peripherals," "Onboard Devices," or "Internal Devices." Find the entry for your keyboard (it may be called "Keyboard" or "PS/2 Keyboard") and change the setting from "Enabled" to "Disabled." Save your changes and exit — the menu will tell you which key to press.

Your keyboard will not work when you restart. To turn it back on, restart again, enter BIOS the same way, find the keyboard setting, change it back to "Enabled," save, and exit. If you forget how to get back into BIOS, you can use an external USB keyboard to navigate the menus instead.

Using an external keyboard while your laptop keyboard is disabled

Once your keyboard is disabled, any USB keyboard or wireless keyboard will work normally. Plug in a USB keyboard or connect a wireless one through Bluetooth, and your laptop will recognize it immediately. You can type, use shortcuts, and navigate normally — only the built-in keyboard is blocked.

This is useful if you need your keyboard disabled for a while but still need to use your laptop. You can also use a mouse or trackpad to navigate if you need to re-enable the keyboard later.

What to do if you cannot re-enable your keyboard

If you disabled your keyboard and cannot remember how to turn it back on, connect an external USB keyboard or mouse. You can then undo whatever change you made — open Device Manager or Terminal the same way you did before, and reverse the steps. An external keyboard works even when the built-in one is disabled, so you will always be able to navigate your system.

If you disabled the keyboard in BIOS and cannot get back into BIOS, restart your laptop and try pressing the BIOS key (usually F2, F10, F12, or Del) more aggressively and earlier in the boot process. If that does not work, contact your laptop manufacturer's support line with your model number — they can walk you through re-entering BIOS with an external keyboard.

Temporary alternatives to disabling the keyboard

If you only need the keyboard disabled for a few minutes — for example, while cleaning it — you do not need to disable it in the operating system. Simply unplug any external keyboard, close your laptop, and let it sleep. When you wake it, press a key on the external keyboard to unlock it. The built-in keyboard will not activate while the laptop is asleep.

Another option is to use keyboard locking software like KeyFreeze (Windows) or Bluetooth Lock (Mac), which locks the keyboard without disabling it in Device Manager. These programs are faster to toggle on and off, though they do not survive a restart.

Frequently Asked Questions

Will disabling my keyboard in Device Manager survive a restart?

Yes. Once you disable the keyboard in Device Manager, it stays disabled even after you shut down and turn your laptop back on. You have to manually re-enable it in Device Manager to use it again.

Can I disable just one key instead of the whole keyboard?

Not through Device Manager or BIOS — those tools disable the entire keyboard. To disable a single key, use remapping software like Karabiner (Mac) or AutoHotkey (Windows), which can remap individual keys to do nothing.

What if I disabled my keyboard and now I cannot type my password?

Use an external USB keyboard to log in. Plug it in before you see the login screen, and it will work immediately. Once you are logged in, you can re-enable your built-in keyboard.

Is it safe to disable my keyboard in BIOS?

Yes, it is completely safe. Disabling a device in BIOS does not damage it — it just tells your laptop not to use it. You can re-enable it anytime by going back into BIOS and changing the setting.

Can I disable my keyboard on a Chromebook?

Chromebooks do not have Device Manager or BIOS settings the way Windows and Mac do. You would need to use a Chrome extension or developer mode, which is more complex. For most Chromebook users, using an external keyboard is simpler than disabling the built-in one.