If you can't control the keyboard in the bios then it has nothing to do with windows.

If possible test the keyboard on a working machine.

Clear the cmos.

If you can get the keyboard to behave long enough set the bios to defaults.

Tell the background on this.
Did it ever work?