if i understand you correctly;
it sounds like it may be a PS2/USB problem. try different ports.
if using PS2 rear port, try a PS2 to USB adapter.
if using USB, try switching to another available USB.
more information is needed:
keyboard make/model
OS version
any proprietary keyboard software...