In order to isolate the problem, you can do one of the following:
1. Try someone else's cable.
2. Use another PC with your keyboard
3. Use another keyboard with your PC
If its not a setup problem, then you can figure out the problem this way. The cable can probably be tested with a continuity tester for electric wires.