If you have working USB ports in your case, try using those. Also, look up "problems with ____" for your keybord. Just type in the model and you will most likely get fixes for it.
It might also be a problem with your motherboard itself, try googling that.