Oof, been there bud. Next time immediately unplug and even disassemble the keyboard if you can, then clean it with isopropanol alcohol. It evaporates without residue and is less likely to damage the circuitry. Well, if it's not too late for that, consider getting one of those keyboard dust covers …