Try is on another USB port. Then, try it on another computer, and see if the problem persists. If it works on the other USB port, then it's the port that you were using that is at fault. If it only works on another computer, then it's a USB controller issue in general. If it doesn't work properly at all, then it's the keyboard.