My method for cleaning my Omnikey was to fill the kitchen sink with water and clean it like one cleans a dish. After a quick towel-dry, I'd toss it in the oven for 12-or-so hours at the lowest temperature (I think about 150-200 degrees American). I did this at least 10 times during the decade and a half that I used this board (and it was sold in perfect, working condition).
I'm sure I did some damage, somewhere. There's got to be parts in that keyboard that corrode, but it always came out "like new". I haven't owned a keyboard like it since and I expect the one I use day-to-day wouldn't survive a strong gust of wind. I'm not completely, nuts, though. The first time I performed this all-day, insane, cleaning routine was after I had lost all hope of resurrecting my keyboard due to an unfortunate encounter with a full glass of Mountain Dew.
At no point did I ever consider putting it in the dish washer. That would have saved me hours!
When I worked for a CS department long ago, I took all the Sun Type 4 keyboards home in batches of 6 to run through my dishwasher.
I would never do it to a board unless I was really sure it was completely unpowered when disconnected, and waited days for it to dry.
There are lots of other caveats depending on the exact keyboard and exact dishwasher model.
Probably good for cooking crab legs, but would likely warp the plastic on a typical keyboard.
And about a decade ago I had a crab dinner served at a friend's house. The guy knew how to cook -- easily the best crab legs I've had (helped by the fact that he knew where to get good product). After we finished the meal, he explained that he cooked them in the dishwasher. I think part of me was grossed out, but it lasted only a few seconds ... they were extraordinary.
[0] I am, but I probably shouldn't be.
(Liquid does not permanently kill the membrane, it's just that liquid gets stuck between the two membranes and can't get out. You can disassemble everything, dry it, and get it working again. Probably. I haven't tried it.)
I have spilled on my Topre keyboards before and there is no fix but to take everything apart and dry the individual pieces. The keyboards are quite well made so can take many cycles of this careful cleaning. To me, that's the best you can hope for; water is not good for keyboards. Though you can probably use Hall effect keyboards under water, if the driving electronics are conformally coated.
The capacitive keyboard was the Model F. Instead of the plastic barrel frame, it uses separate plastic barrels held between two metal sheets, and the little conductive plastic flippers trigger capacitive pads on a PCB. https://deskthority.net/wiki/IBM_Model_F
There are pictures of the insides of a Model F XT keyboard here, http://vintagecomputer.ca/ibm-pc-model-f-keyboard-type-1-vs-...
Here are pictures of someone modding a 122-key Model F https://deskthority.net/viewtopic.php?f=7&t=11102
Go ahead and take a Model M apart. I guarantee you’ll find a membrane sheet.
Over 800 dishwasher cycles later and the keyboard still functions as if it were brand-new. All I need to do is replace the PS/2 cord which has worn out at the strain relief.