If the keyboard does not work in other ports and does not work on another computer, odds are high that the keyboard has suffered a hardware failure.
Assuming that you have a USB-connected keyboard, the power to the lights on your keyboard is carried on a different wire than the data signals, so it's possible that one of the data wires in the USB cable has broken, but my guess is that the problem is in the keyboard's internal electronics.