If the keyboard has micro switches, use some isopropol and squirt it inside the casing of each switch.
Leave it to evaporate for about 15 minuets.
If your lucky the cause was just sticky fluid. Isopropol is close to 100% alcohol and should remove any gunk from the contacts inside the tiny micro switches of the keys of your razer keyboard.
At the very worst you may of fried the keyboard encoder/decoder chip of the razer keyboard if the case it is why two or three of your key presses on the keyboard are now not detected anymore.
That means having to buy a whole new keyboard.