If you spill liquid on your Magic Mouse, turn it off and disconnect it, then blot away the liquid and let it air dry before using it again. This should prevent any damage to the device.