IDG Answers is a community of experts who are passionate about technology. Ask a question or answer one below.
Prevent the accident rather than coping with it, by moving the beverage off the desk or table and away from the electronics. Get computer users to use a device such as this: http://chris.pirillo.com/i-spilled-coffee-all-over-my-computer/
Like Ryan mentioned, I hope that you drink your coffee black with no sugar. It's not too hard to clean a keyboard that has had "plain" coffee spilled in it, but sugar makes thinks sticky, and it's a lot harder to get everything to feel right. Nothing worse than that sticky feeling....ugh. You might be able to just pop the keys off, but it sounds like you have a grade A spill, so taking it apart and being able to really get to everything would be better. A damp, non-lint cloth will go a long way in cleaning up the mess inside. A can of compressed air is good too.
If the keyboard is a cheap-o and you don't care too much if you have to replace it, I would 100% try the dishwasher thing. Even if it doesn't work, it would still be like having your keyboard star in its very own mini-disaster film. Will our hero survive? Will it ever be the same? Stay tuned......
Huh, never thought of that. I'll have to give that a whirl.
Some of the comments in that article indicate that you don't even need to take out the electronics; just throw the whole thing in there as-is, cut back on the detergent, run it, and let it dry for a couple days.
It depends on the keyboard, but it's not unheard of to be able to recover from a coffee spill. Depending on how much cream and sugar you put in it, it might be a bit sticky; I'd remove all the keys, swab everything down to get it clean, replace the keys, and test to make sure that things are working fine. Most keyboards nowadays have an elastic membrane, which helps prevent some damage (though they're not rated to be waterproof, so I'd test it on a computer that you don't care about as much).
Hope that helps! I deal with quite a bit of keyboard coffee spillage as an IT guy :P