I suspect the heat of the dryer would be more of a problem than the water.
Keyboards can also survive dishwashing with gentle soap. So can motherboards
I don't advise it, but tech can take quite some abuse.
Strategically placed underwear and socks can do wonders to protect things.
(never tried it with a wireless one, so...)