Water, coffee, tea and soda are among your laptop’s worst enemies. Just a little bit of such a liquid on your laptop keyboard can damage or destroy your machine or cause you to lose data.
The best way to prevent damage from a mix of liquid and electronics is to keep them as far apart as possible. Keep your laptop far away from cups of coffee, glasses of water, and cans of soda. But in read life it is not possible.
Yahoo tech has some info – an emergency recovery from a spill