$30 gets you a new Apple USB keyboard. So go ahead and put it in the dishwasher. Let it drain for a WHOLE DAY to make sure the majority of the water has evaporated. Now pour a WHOLE PINT of (at least 70% concentration) rubbing alcohol all over the keyboard, shake it around good and let it sit upright for another WHOLE DAY. Alcohol dissolves water and helps it evaporate, plus it will help dissolve anything the dishwasher didn't get.
Or you could just go to CompUSA and get a new keyboard, and not keep the beer near it.

I personally would go with that option.