Blog · October 28, 2026 · 7 min read

How to Disable the MacBook's Built-In Keyboard When Using an External Keyboard

Let us get the awkward part out of the way first, because this is a VibeLock site and you may have arrived expecting VibeLock to be the answer. It is not, for this question. VibeLock locks every input on your Mac: the built-in keyboard, any external keyboard, the mouse and the trackpad, all at once, while your chosen apps stay visible on screen. If what you want is to type on a Magic Keyboard or a mechanical board that sits on top of the MacBook while the laptop's own keys stay dead underneath it, VibeLock will stop both keyboards equally and you will not get a character out of either. The right tools for that job are below, and they are not ours. The last section covers the different problem VibeLock does solve, which people searching for this sometimes actually have.

macOS has no switch for this

There is no setting in System Settings that turns the internal keyboard off while an external one is connected. The Keyboard pane lets you change key repeat, modifier keys and input sources; Accessibility's Keyboard section offers Sticky Keys, Slow Keys, the Accessibility Keyboard and Full Keyboard Access, all of which change how key presses are interpreted and none of which ignore them. Slow Keys, which makes the Mac wait before accepting a key, is the one people try, and it only makes the built-in keyboard annoying rather than inert, and it applies to the external one too. So the options are third-party software, closing the lid, or physically covering the keys.

Option 1: Karabiner-Elements, per device

Karabiner-Elements is the free, open-source keyboard customiser for macOS, and its documentation has a page written for exactly this case; the page says the feature is intended for when you place an external keyboard on top of the built-in one. The steps, from that page: open Karabiner-Elements Settings, go to the Devices tab, find your external keyboard in the device list, and enable the checkbox labelled Disable the built-in keyboard while this device is connected. From then on, as long as that specific device is plugged in or paired, key presses from the MacBook's own keyboard are dropped; unplug it and the built-in keyboard comes back on its own, which is the behaviour you want on a laptop you also use on the train.

Two notes from the same documentation. If the built-in keyboard is not recognised as built-in, there is a separate Treat as a built-in keyboard option in Devices to mark it, and the same option can mark an additional device as built-in so it is disabled too (useful if you have two boards you want silenced). And because Karabiner works by intercepting input at the system level, it needs the permissions macOS asks for during its setup; install it from the project's own site, karabiner-elements.pqrs.org, and follow its install guide rather than a repackaged download.

What it does not do: it does not disable the trackpad, so a palm resting on it while you type on the board above still moves the cursor. Karabiner is a keyboard tool. For the trackpad, the honest answer is a tray or stand that lifts the external keyboard clear of it, or the next option.

Option 2: Closed-display (clamshell) mode

If you have an external display, the cleanest way to make the built-in keyboard irrelevant is to close the lid. Mac laptops support closed-display mode: with the Mac connected to power (the AC adapter, or a display that powers it over USB-C or Thunderbolt), an external display attached, and an external keyboard and mouse or trackpad connected (wired or wireless), you can close the lid once the desktop appears on the external display, and the Mac keeps running with the external screen as its only screen. You may need to press a key or click to wake the display after closing. To leave the mode, put the Mac to sleep from the Apple menu before disconnecting the display.

The trade-offs: you lose the built-in screen as a second display, Touch ID on the keyboard is under the lid (so you type your password or use an external Touch ID keyboard), and the power requirement is real, since on battery the Mac simply sleeps when the lid closes. But for a desk with a monitor, this is the setup most people who ask the question end up with.

Option 3: A cover, and why keyboards-on-laptops are a bad idea anyway

Some people put a thin keyboard cover or a rigid tray over the built-in keys and set the external board on top. It works mechanically, and it is the only option that also stops a trackpad from reacting to a resting palm. The caution is physical rather than software: a MacBook vents heat through the keyboard area and the hinge, and a board sitting on top adds weight and insulation over the exact area that is designed to stay clear. If you do it, use a tray with feet that lift the external keyboard off the deck, not a keyboard resting directly on the keys, and keep the hinge area clear. A stand that puts the laptop at eye height with the keyboard on the desk in front of it solves the problem by not creating it.

The other question: ignoring every input for a while

Now the case where people land on this page with a different need underneath the search. They do not want to type on another keyboard. They want the Mac to stop reacting to keys and clicks altogether for a while, with the screen still on, and “disable the keyboard” is the nearest phrase. Four situations come up again and again: wiping the keyboard and trackpad without typing gibberish into whatever is open; leaving Claude Code, Codex or a long build running where you can see it while you step away; a dashboard or a video that should keep playing on a Mac in a shared room; and a small child who has discovered that laptops have keys.

That is what VibeLock is for, and it is a different mechanism from any of the above. It is a native, notarized $10 one-time menu bar app for macOS 13 Ventura or later. When you lock, a system-wide event tap swallows every key press, modifier, click, drag and scroll from every keyboard and pointing device; Spotlight, Force Quit and ⌘Q are blocked; every app that is not on your Visible While Locked list is hidden and kept hidden; and the display is held awake so the terminal or the video stays readable from across the room. Unlocking is Touch ID or your normal Mac login password, verified locally; nothing is stored or sent anywhere, and the app contains no networking code at all. It needs only the Accessibility permission that input blocking requires.

The honest limits apply here too, and the security model page lists them: the screen itself is readable by anyone, media and brightness keys most likely keep working, trackpad gestures that switch Spaces cannot be blocked by an event tap (VibeLock covers the resulting Space with a shield instead), closing the lid still sleeps the Mac, and anyone with SSH access can end the process. It is a lock against the casual walk-up, not a replacement for the macOS login screen against someone with time and tools.

If one of the four situations is yours, we have written each of them up: the keyboard cleaning mode post is the two-minute version, the lock the keyboard and keep the screen on post is the general one, and five methods compared sets VibeLock against the built-in alternatives for the leave-a-video-playing case.

Which one you want, in one table

You want toUseKeeps working
Type on an external keyboard placed on the MacBookKarabiner-Elements, Devices tabExternal keyboard, trackpad, mouse, screen
Use a monitor at a desk and never touch the laptop keysClosed-display modeExternal keyboard, mouse, external display
Stop a resting palm hitting the trackpad tooA tray or stand that lifts the keyboard clearEverything; nothing is disabled in software
Ignore all input for a while, screen on, apps visibleVibeLockOnly the screen; every keyboard and pointer is blocked

Pick by the first column, not by the word “disable”. If you are going to type, you want the first two rows and should ignore us. If you are going to walk away, the last row is the one that exists because the first two were never designed for it.

Keep reading