Keyboard help needed **Please**

I would like to lock the keyboard so that it cannot recieve any
key presses whatsoever.
I am not the worlds greatest programmer, so some sample code would be
greatly appriciated.

Also, does anyone know how to stop my drive whirring.
How can I call an immidiate power down.

Thanks for any help in advance.

Mark Bell