How can I prevent my machine from automatically downloading deleted system files? I spilled coffee on my keyboard and most keys are now constantly pressed so the machine is not usable so I disabled the built-in keyboard in order to use an external keyboard but I am having some problems. I do not want to replace the built-in keyboard, I just want to disable it and use an external keyboard.

I searched around and found that I could disable the built-in keyboard by typing the following to disable:

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


And the following to enable:

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


I typed the above but it didn't work so I typed:

open /System/Library/Extensions


and deleted the file called AppleUSBTopCase.kext because I figured that it is the driver for the keyboard. This worked and everything is fine now but as long as the machine is connected to the internet, it will keep downloading the drivers after I delete them and the machine becomes unusable again once the keyboard is enabled. How can I prevent it from doing that (without disconnecting it from the internet...)?
I stumbled across this yesterday while performing maintenance on my server unit. Give it a shot and let me know the outcome (AFAIK this is only viable on Yosemite).


Open 'System Preferences'
Select the 'App Store' pane
Deselect the checkbox marked 'Install system data files and security updates'


Hopefully, OS X should stop repairing your Extensions folder each time you connect to the internet.

Failing that, perhaps changing permissions for the kext (rather than outright deleting it) will just cause it to fail to load but still be present and therefore not re downloaded.