Dry it out completely - if necessary put in a sealed bag with desiccant (silica gel / rice) to absorb the moisture.
Worst case if it is just the keyboard you can get a replacement for about £30 odd depending on make / model etc.
Drying out process could take a week or so - I had a £1000...