sodcalculator

10 Tech How-To

How to Disable Your Laptop Keyboard in Windows and macOS

Guide 10-58072 · Updated · Step by step

This guide walks you through disabling your laptop’s built-in keyboard in Windows and macOS, whether you’re troubleshooting a faulty key, prefer an external keyboard, or want to prevent accidental presses. You’ll learn both temporary and permanent methods, plus how to re-enable it when needed.

What You’ll Need

  • An external USB or Bluetooth keyboard (essential for continuing to use your laptop after disabling the built-in one)
  • Administrator access on Windows (to install drivers or use Device Manager)
  • For macOS: a way to run a terminal command (Terminal app is included)
  • Optional: a USB mouse or trackpad if your built-in trackpad is also disabled

Step-by-Step

Windows (Temporary Disable via Device Manager)

  1. Plug in your external keyboard and ensure it works.
  2. Press Windows + X and select Device Manager from the menu.
  3. Expand the Keyboards section. You’ll see your laptop’s built-in keyboard (often labeled “Standard PS/2 Keyboard” or the manufacturer’s name) and possibly your external keyboard.
  4. Right-click on the built-in keyboard entry and select Disable device. If you see “Uninstall device” instead, that’s also an option but will require a reboot to reinstall.
  5. Confirm any warning prompts. The built-in keyboard will stop working immediately.
  6. To re-enable: right-click the same entry and select Enable device.

Windows (Permanent Disable via Driver Update)

  1. Follow steps 1-3 above to open Device Manager and find the built-in keyboard.
  2. Right-click it and select Update driver.
  3. Choose Browse my computer for drivers, then Let me pick from a list of available drivers.
  4. Uncheck Show compatible hardware.
  5. Select Standard keyboards from the left, then choose HID Keyboard Device on the right. Click Next and confirm the warning. This replaces the driver with a generic one that won’t function with your hardware, effectively disabling it.
  6. Reboot. The built-in keyboard will not work. To restore, repeat the process and select the original driver (or use “Search automatically for drivers”).

macOS (Using Terminal Command)

  1. Connect your external keyboard and mouse.
  2. Open Terminal (Finder > Applications > Utilities > Terminal).
  3. Type the following command and press Enter:
    sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext
  4. Enter your admin password when prompted. The built-in keyboard will disable immediately.
  5. To re-enable, use:
    sudo kextload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext
  6. Note: On newer macOS versions (Catalina and later), the system may block kextunload due to System Integrity Protection. If you get an error, use the alternative method below.

macOS (Alternative: Using Karabiner-Elements)

  1. Download and install the free open-source app Karabiner-Elements from its official site.
  2. Open the app and grant it accessibility permissions when prompted (System Preferences > Security & Privacy > Privacy > Accessibility).
  3. In Karabiner-Elements, go to the Devices tab.
  4. Find your built-in keyboard (usually listed as “Apple Internal Keyboard / Trackpad”).
  5. Check the box Disable the built-in keyboard (or similar). This is a per-device toggle that persists until you uncheck it.
  6. Close the app. The built-in keyboard is now disabled. To re-enable, uncheck the box.

Common Mistakes

  • Disabling the wrong device in Device Manager (e.g., disabling your external keyboard instead of the built-in one). Always check the device name and location.
  • Using the driver replacement method without rebooting—the change may not take effect until restart.
  • On macOS, forgetting to grant accessibility permissions to Karabiner-Elements, which prevents it from working.
  • Assuming the built-in keyboard is the only “Standard PS/2 Keyboard”—on some laptops, there may be multiple entries.
  • Not having an external keyboard ready before disabling, leaving you unable to type.

Tips

  • Before disabling, test your external keyboard to ensure it works properly.
  • If you’re disabling due to a spilled liquid or stuck key, consider cleaning the keyboard first—it might save you the hassle.
  • For Windows, the Device Manager method is temporary and resets after a reboot (if you chose “Disable”). For a persistent disable, use the driver replacement method.
  • On macOS, the Terminal command is temporary until reboot. For a permanent solution, use Karabiner-Elements.
  • Create a system restore point on Windows before making driver changes, so you can easily revert if something goes wrong.
  • If you’re using an external keyboard, you can also disable the built-in trackpad to avoid accidental cursor jumps—similar steps apply.

Troubleshooting

  • Windows: “Disable device” is greyed out. This happens when the keyboard is the only input device. Connect an external keyboard and mouse, then try again. If still greyed, run Device Manager as administrator.
  • Windows: Driver replacement fails. Make sure you uncheck “Show compatible hardware” and select “HID Keyboard Device” from the list. If the warning doesn’t appear, try uninstalling the device and then scanning for hardware changes—Windows may reinstall the original driver automatically.
  • macOS: kextunload returns “operation not permitted”. This is due to SIP. Disable SIP temporarily (reboot into Recovery, run csrutil disable), then try again. Re-enable SIP afterward. Alternatively, use Karabiner-Elements.
  • macOS: Karabiner-Elements doesn’t detect the built-in keyboard. Make sure the app has accessibility permissions. Also, on Apple Silicon Macs, you may need to enable “Input Monitoring” in Security & Privacy.
  • Keyboard still works after disabling. Double-check that you selected the correct device. On Windows, the built-in keyboard may be listed under “HID Keyboard Device” or “PS/2 Keyboard”. On macOS, the kext name may differ on newer models—try using Karabiner-Elements instead.
  • External keyboard not working either. Ensure it’s properly connected (try a different USB port or Bluetooth pairing). If it’s a wireless keyboard, check batteries.

Frequently Asked Questions

Will disabling my laptop keyboard void the warranty?

No, software-based disabling does not void the warranty. However, physically removing the keyboard might.

Can I disable only certain keys?

Yes, third-party tools like SharpKeys (Windows) or Karabiner-Elements (macOS) allow remapping or disabling specific keys.

Does the keyboard get re-enabled after a system update?

Windows updates may reinstall drivers, which could re-enable the keyboard. macOS updates may also reset kext settings. You may need to repeat the steps after major updates.

Is there a way to disable the keyboard without external software?

On Windows, Device Manager is built-in. On macOS, the Terminal command is built-in, but it may be blocked by SIP on newer versions.

Can I use the built-in keyboard again after disabling?

Yes, all methods are reversible. Follow the same steps to re-enable.

What if my laptop has a keyboard with a built-in fingerprint reader?

Disabling the keyboard may also disable the fingerprint reader if it’s integrated. You’ll need to use a different authentication method.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →