If it was just plain water the chances are very good it will work just fine if you can dry it completely. Pure water is non-conductive.
If it had additives like flavoring or sweetener there might be some trouble because those could leave a conductive residue. Even in that case the chances are slim that a malfunctioning keyboard would damage your PC. The most likely outcome is that it sends extraneous characters or some keys don't respond.