Try reinstalling the keyboards drivers.
If your keyboard is USB and supports USB to PS/2 AND your PC supports PS/2 Input, You could also try that.
If your keyboard is PS/2 I guess you could also find some convoluted way to do the same thing in reverse and see if that also works.