[header] How to clean a keyboard [title] Shut down the computer and detach the keyboard connector before any cleaning procedure. [step] Do not remove or connect a keyboard while the computer is running. Doing so may damage the machine if you have a non-usb-based keyboard. 
Detaching the keyboard while the computer is running is safe when the keyboard is connected to the computer via usb. [title] For a quick cleaning, turn the keyboard upside down and use a can of compressed air to blow out any foreign matter.