Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My cat has a nasty habit of jumping over my MBP and causing keystrokes that mess up things (anywhere from stopping a playing video to deleting a file).

I'm looking for some utility or hack to disable completely the internal keyboard and to re-enable it either using the mouse or using some key combination.

Any ideas how to achieve this?

share|improve this question
I had a cat jump on my MBP once, except it got spooked and tore keys off the keyboard in the leap off the keyboard. Good question though. – Troggy Sep 7 '10 at 21:35
Same issue with a cat here! And he's far too cute for me to get any upset about it ^^ – Adrien Be Nov 27 '15 at 17:55

There are a couple 3rd party programs that do similar things.. or just get a stand that will put your MBP at an angle so the cat doesn't jump on it..


edit: you can also try Keyboard Cleaner

share|improve this answer
Keyboard cleaner is nice and simple. you have cmd-q to close it and get your keyboard back. Mouse clicks won’t register. – Martín Marconcini Sep 8 '10 at 1:25
Lockey seems to be possibly dodgy / scam (as in not trustable in terms of your personal/payment info, scam). The website links to a different domain advertising a new version that works with mavericks and you can only pay by credit card and no trial download and the whole thing just looks dodgy. A shame as it's the only non-terminal solution I could find... – user78017 Jun 26 '14 at 2:16
Keyboard cleaner locks all keyboards not just the intenral one. – Srneczek Nov 1 '15 at 21:53
Just for the record to those that are down-voting my answer: This question/answer is over 5 years old and software and fixes that worked then are likely very different today. – Rex Nov 16 '15 at 14:45

Just tried this on my 2013 MBP with 10.8.5:

The external keyboard still works fine, and I was able to disable, then reenable my internal keyboard.

To disable the internal keyboard of a portable Mac:

sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/ The internal keyboard is then disabled, external keyboards will still work.

To re-enable the internal keyboard of a portable Mac:

sudo kextload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/

When I initially disable the internal keyboard, terminal notifies me that:

(kernel) Can't unload kext; classes have instances:
(kernel)     Kext class AppleUSBTCKeyboard has 11 instances.
Failed to unload - (libkern/kext) kext is in use or retained (cannot unload).

Nevertheless, the command works, no ill effects.

Thanks to: macrumours

share|improve this answer
confirmed this works on 2009 white macbook running 10.8.5 and I haven't noticed any side-effects. Works like a charm. awesome. – Aidan Miles May 22 '14 at 23:54
Works on MBP(Mid 2014) running 10.10.3 – Samveen Jun 15 '15 at 12:49
doesnt work on 10.10.5 – Srneczek Nov 1 '15 at 21:54

Mouse keys could actually solve your problem without any app. Its build in OSX accessibility option (can be turned on and off). Basically when you press Option key 5 times, it enables (and disables the same way) and then you can only use like 6-8 keys on keyboard to only control mouse - other keys and touchpad are disabled - so if your cat doesnt hit 1-2 keys (left and right mouse clicks) you are fine.

It is not 100% solution but could work in 80-90% cases. I am using it when I put my ergonomic keyboard on top of mcb-pro keyboard. Wonder when (and if) will ergonomic keyboards come to notebooks tbh. Soon there will be world fulled with blind programmers with RSI or carpal tunnels in their wrists.

My actual version is El Captain 10.11.1 but I think it worked on 10.10.5 which I had few weeks ago.

share|improve this answer
This works great! Thanks – Huang Tao Jun 10 at 3:55

You could put a password on your screen saver ("Require password [time] seconds after sleep or screen saver begins" in the "General" tab of the "Security" section of System Preferences, probably best to add a hot corner for quick activation). This will require you to enter your password whenever you return to your computer - unless your cat knows it, you'll be protected from any accidental input.

Unfortunately, this means you have to be not using your computer at that point. Other than using an external monitor and so on and closing the lid, I don't know of any built in way of disabling the keyboard.

share|improve this answer

Looks like all cats love to mess with MacBooks

This Should solve your problem

or try this

PS: Are you the same user who asked this question over here

share|improve this answer

Try the free software CatNip, which claims to detect cat-like typing and locks the keyboard in response.

share|improve this answer

There's a excellent free app that does exactly that. It's called KeyboardCleanTool, and it's made by the same guy who made BetterSnapTool.

Unlike with Keyboard Cleaner, you can still use your computer as normal while your keyboard is disabled.

share|improve this answer
Please don't link directly to downloads. You should instead link to the product page. Also read How do I recommend software for some tips as to how you should go about recommending software. At the very least you should provide more than just a link, for example some additional information about the software itself. – DavidPostill Mar 22 '15 at 6:15 this app is free, locks keyboard, n doesn't shut off screen (you can continue to FaceTime / Skype, or watch a movie)!! Other apps blur the screen.

share|improve this answer

You must log in to answer this question.

protected by bwDraco Mar 3 at 2:15

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .