Nothing wrong with a dishwasher, it's great for cleaning circuit boards. Use a hair dryer to dry it afterwards, or a 50 degrees celsius oven.. Don't put plastic parts in the oven, only wet circuit boards (!).
Remove all batteries and socketed chips first. Afterwards, make sure there's no water left sucked beneath chips, etc before powering it up again.
Only thing, don't put your case parts / circuit boards in with dirty dishes. There'll be bits of food stuck to them, etc.. :-)
Oh, and I doubt the dishwasher trick will rejuvenate those elastomer rubbers beneath the key stems. If they have been polished from use, they will need some abrasion before they make good contact again.
It's a good idea to dry these out quickly. Especially if you wash a keyboard with a plastic contact membrane. The water that is left between the membranes will eat the tracks if you just let it stay there.
Dismantle the kbd after washing (or even better, don't even put the membrane in the washer) and use that hair dryer.