What's the liquid substance?
- Water and other drinks without sugar or syrups are fine. Just turn the keyboard over and let it drain for about 24 hours.
- sticky drinks - throw it away.
Basic keyboards run about $8. I'd ship you one of my many spares, but it would probably cost less to buy one than for shipping. If you have or want one of them fancy ones, do what I do - outlaw drinks anywhere near the keyboard.
Oh - if it's a laptop, then you'll have to open it up and clean it out. My wife did that with one many years ago, and it worked fine after 24 hours to dry.