I washed a keyboard once in the dishwasher,that had pop spilled on it thanks to a family member (no one would fess up) it was older and I had a backup in my parts drawer just incase so i figured what the heck.
I ran in regular wash, no soap and helped dry it with a hairdryer, (also air dried it for a couple days as I remember).
worked until I upgraded to a new computer.
maybe I just got lucky
tinker