if you have already opened the cover of your keyboard check the pin connections, unplug them and try to dry. Then plug it back in and see if it works.
This may sound funny but if you seal the keyboard in a plastic bag with rice and take the air out, rice will suck out all the moisture in like a few hours. This worked for me many times. :)