Yes, it’s safe to put the keycaps in water. However, make sure to remove them from the keyboard before doing so.