Disable Trackpad and Keyboard Temporarily Is it possible to disable the trackpad and mouse temporarily while you have an external mouse and keyboard plugged in.

The keys keep getting accidentally hit while I have the mouse and keyboard plugged in. 

Edit

Thank you to everyone who answered, because of this I was able to make an applescript to toggle the builtin keyboard on and off:

try
    if (display dialog "Press OK to Enable Keyboard and cancel to disable.") = {button returned:"OK"} then
        do shell script "sudo kextload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/" with administrator privileges
    end if
on error msg
    do shell script "sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/" with administrator privileges
end try
For the trackpad, there’s a setting for this on 10.7 and later. 

System Preferences > Accessibility > Mouse &amp; Trackpad > “Ignore built-in trackpad when mouse or wireless trackpad is present”

As for the keyboard: I haven’t tested this solution for disabling the built-in keyboard and wouldn’t recommend doing it either. Apparently you can unload a kernel extension to disable it completely.