My cat is a menace
As a new cat owner, I am struck by my cat's uncanny ability to identify my precise point of focus and sit on it. If its a book, he will identify the very paragraph I'm reading and obscure it with his tail. If I have my computer in my lap as I'm doing now, he will find the most damaging keys (key combinations!) and depress them with his grubby little paws. He has found features of MacOS X I was unaware of and have been unable to duplicate; however this behavior must stop. Five minutes ago he paused on the power button and managed to turn my laptop off before I could dislodge him. My cat instruction manual advises me to use a spray bottle mist to discourage my cat of bad behaviors. This solution is clearly ill advised where my computer is concerned.
I need a "Cat Alert" macro key on my keyboard. When I press it (F12?) it locks the keyboard, much like the lock on a cellphone keypad. A simple key combination (shift-F12?) unlocks it again. An applescript perhaps, triggered by an F-key macro? I don't presume to match my cat's... um... cat-like reflexes. But when I do have some warning of an impending pounce I want to preserve my work, and my cat's affection.
I call on thee, oh great LazyWeb! Is there an answer to my plight?

(Look! You can see him reaching for the power button!)