In any case directly switch off the laptop! Only in the case of small amounts of water it is possible that the trackpad, after having dried, will function unchanged.