a cloth over the keys types four hundred characters
updated · by Anton Shakirov
there is no «disable keyboard» switch in macOS, and the two things people try instead both misbehave: the lock screen keeps accepting keys into the password field, and sleep wakes up the moment you touch one. shutting down works and costs you every open window. here is the honest set of options — including the one that several pages recommend and that does not work at all.
the built-in ways to disable a Mac keyboard, and why each falls short
three things get suggested for this, and it is worth being exact about what each one does — because one of them is recommended widely and does nothing at all.
one thing to rule out before you start: if the machine has also been running hot and loud, the dust under the keys is almost certainly not the reason — why your Mac fan is loud
does the lock screen disable the keyboard?
no, and this is the answer you will find everywhere. Apple menu → Lock Screen, or ⌃⌘Q, is nearly right: nothing you type does damage. it also is not off. every wipe goes into the password field, the trackpad still works, and two specific things go wrong that nobody mentions.
- a cloth crossing the Return key reads as a submitted password. enough of those and macOS decides you have forgotten it and starts offering to reset it.
- failed attempts are rate-limited, and the limits are stricter after a restart — so the cleaning session ends with you waiting to be let back into your own Mac.
Gary Rosenzweig's answer to exactly this question walks through both, and confirms there is no built-in way to do it properly: how can I lock the keyboard on my MacBook so I can clean it
does the accessibility keyboard turn off the physical one?
no, and several pages ranking for this say otherwise. the Accessibility Keyboard is an on-screen keyboard: it exists so that someone can operate a Mac **without** a physical keyboard, not so that a physical keyboard can be switched off. turning it on adds a panel to your screen and changes nothing about the keys under your cloth.
the neighbouring accessibility settings do not help either, and it is worth knowing why. Slow Keys and Sticky Keys change how a key press is interpreted — how long you must hold it, whether modifiers latch — not whether it registers. switch them on for a wipe and you get a keyboard that feels broken afterwards and still typed everything.
Apple's own description is unambiguous about what it is for: use the Accessibility Keyboard on Mac
the accessibility settings turn up in another context too, and there the confusion costs more: it is the permission most Mac utilities ask for, and it is the broadest one you can grant — why a Mac app asks for accessibility permission
why does my Mac wake up when i touch a key?
because almost any key is a wake signal, which is what makes sleep the worst of the three. you close the lid or let it doze, start wiping, and now you are typing into whatever was in front.
shutting down is the one that genuinely works, and even it is not absolute: on current MacBooks a key press starts the machine up again. so the honest summary of the built-in options is that one of them costs you your session and none of them makes the keys stop.
the opposite problem — a Mac that must stay awake and not doze off mid-job — has a proper answer, and it is not the lid: keep a MacBook awake with the lid closed
how hop locks the keyboard
hop's keyboard lock is a duration: tap 1, 5 or 15 minutes — or ∞ — and every key stops responding while the Mac carries on working. a download continues, a render continues, your windows stay where they are.
- the whole keyboard goes quiet, including brightness, volume and the media row — the keys that are easiest to hit with a cloth and most annoying to hit by accident.
- a cover explains what is happening, so nobody walking past thinks the Mac has frozen, and the menu bar icon turns into a keyboard.
- a short press of the power key is swallowed too. holding it still forces the Mac off — that is handled in hardware and no app can intercept it.
- nothing is recorded. the keys are dropped, never read: a tool that sits between you and your keyboard should not be one that remembers what came through it.
how do i unlock it again?
four ways, and none of them is a key — which is the whole point, and the first question anyone sensibly asks before switching such a thing on. the cover's button, the panel's button, opening hop, or holding esc + shift for five seconds. the power button remains the hardware backstop under all of them.
the module in full, including what the lock does not cover: keyboard lock on the features page
worth knowing before you install any menu bar tool this autumn: macOS 26 rebuilt that part of the system and a wave of them misbehaved for weeks — what macOS 26 changed for menu bar apps
how to clean a MacBook keyboard safely
what should i use to clean a MacBook keyboard?
- a soft lint-free cloth, dampened — never sprayed. liquid past the keys stops being a cleaning problem.
- 70% isopropyl alcohol wipes are what Apple names as safe for the exterior surfaces.
- nothing with bleach or hydrogen peroxide, nothing abrasive, and no moisture near any opening.
Apple's cleaning guidance is specific about the wipes and about what not to use: how to clean your Apple products
for crumbs rather than smudges there is a documented procedure with compressed air, and its details matter more than they look: hold the Mac at a 75° angle rather than upright, spray left to right, then turn it on each side and repeat. what you loosen falls out instead of further in.
the full procedure, with the models it applies to: how to clean the keyboard of your Mac notebook
can i take the keycaps off?
it depends on the machine, and getting it wrong turns one dead key into a repair. the butterfly keyboards of roughly 2015–2019 hold their caps with thin plastic clips that break on the way off, and Apple's own answer for them is the compressed-air routine rather than removal. the scissor keyboards from 2020 onwards are more forgiving, and still almost never need it: a key that stopped working after a clean is usually something under the cap rather than moisture, and prying is how people find that out expensively.
external keyboard? unplug it or switch it off, and this whole page is unnecessary. a lock covers the built-in one, which is the one you cannot detach.
and if the tried utility is still sitting on the disk months later, removing it properly is its own small job: uninstall an app with its leftovers
frequently asked questions
- how do i disable the keyboard on a Mac?
- macOS has no setting for it. the lock screen stops keys from doing damage but still types them into the password field, and genuinely dropping the input takes a tool that intercepts it.
- does the accessibility keyboard turn off the physical keyboard?
- no. it is an on-screen keyboard for people working without a physical one, and it changes nothing about the keys on the machine. several pages recommending it for cleaning are simply wrong.
- does the lock screen disable the keyboard?
- it stops them from doing anything harmful, not from being registered. you are typing into the password field, a stray Return reads as a failed attempt, and after enough of them macOS starts limiting how often you can try again.
- can i clean the keyboard while something is downloading?
- yes, and that is the point of a lock rather than a shutdown — the Mac keeps running, the keys do not respond.
- how do i unlock it if the keyboard is disabled?
- in hop, with the mouse: the cover's button or the panel's. there is also esc + shift held for five seconds, and holding the power key always works because hardware handles it.
- is it safe to use alcohol wipes on a MacBook?
- Apple names 70% isopropyl alcohol wipes as suitable for the exterior surfaces. wipe, do not spray, and keep liquid away from any opening.
- can i take the keycaps off to clean underneath?
- on the butterfly keyboards of 2015–2019, no — the clips break, and Apple's answer for those is compressed air at a 75° angle. on scissor keyboards from 2020 it is possible and still rarely necessary.
the tool behind this
keyboard lockwipe the keyboard clean without shutting the Mac down.done with keyboard lock
other things people do
- a folder of heic, and something that wants jpgfile converter
- forty documents, and Word is not installedfile converter
- the app is gone. its eighteen folders are not.app uninstaller
about the author

Anton Shakirovmakes hop
makes hop and every page on this site. eighteen tools under a single menu bar icon, MIT licensed and open source. reads and answers issues and email himself.