How do I service the Apple Wireless Keyboard?
If you are lucky just wait a day or a week for it to dry out completely.

You could try to clean individual keyboard keys (the contact area) but you will have to take it apart.

That is doable but requires some skills like in this video or this one.

If you are not lucky you will have to replace it.