You could try uninstalling the software/drivers for the keyboard, deleting any saved information for it and then reinstalling.
I've never heard of that before, so that's about all I could think of. What kind of keyboard do you have?