Most keyboards are fine with water, even hot soapy water. Sugar is death, mind: you can spill black tea on 'em and they'll dry out fine (from experience), but if you take it sweet, you need to rinse it out ASAP.
That said, I once cleaned an ancient PC keyboard but taking all the keys off and leaving them to soak while I got the dust out of the worky bits: it went fine, until the warm water managed to warp the space bar.