That was because the spill reached the board and it wasn't properly washed, CO2 and sugar from beverages corrode the copper traces and end up killing the board.
There seem to be some keyboards for sale on Amazon:
https://www.amazon.com/Mechanical-Keyboard-MS-17A3-MS-17A6-MS-17A2/dp/B09XXMCSNQ
Way cheaper than I expected.