When programming the keyboard using the keyboard utility, the keyboard must be connected directly to the keyboard PS/2 port.
If you have a scanner "wedged" between the keyboard and the computer, remove it while programming the keyboard.
You can replace it once the keyboard has been programmed.