I've seen some keyboards take full immersion and keep working after drying up. I've seen others break or partially break after a bit of coffee spillage.
Sincerely just depends on how the keyboard was constructed and a bit of luck.
Just dry it off as best you can, then let dry on one side in full sun for a day, flip and let dry on the other side the next day. Plugin and try on day 3.