I can't say for sure that replacing the keyboard will help anything at this point, really. I was just suggesting a possible fix. Having said that, I should add that it can take much, much longer than two hours for moisture to dry from a laptop's interior. Allowing a wet laptop to dry out while turned upside down overnight isn't too far-fetched an idea at all. But that is provided that there was no damage to the circuitry. How much liquid would you say spilled on your laptop?
I'm hoping you were able to shut down and turn your laptop upside down before the liquid moved deeper into the machine. Electricity and liquids make for a problematic combination, of course. Liquids can damage powered circuits instantaneously. That can in turn lead to a chain of serious problems.
It is thus imperative that you quickly remove power and pull out the battery when a spill occurs -- literally within seconds of the liquid making contact with your laptop. You can then clean all those parts of the spill that you can get to with paper towels or some other absorbent material before moving onto disassembling the case.
If, like me, you are unfamiliar with electronics, then I suggest that you have a professional look at your laptop if the problem persists. I really hope you can get around this with a quick fix and that you don't have to spend anything at all to get your machine running properly again.
Sorry I couldn't be of more help to you, Deg_89.