How to solve the problem of non responsive keyboard

I have a very unusual problem. My keyboard does not work in the system BIOS. It shows me the first screen of the BIOS but I am subsequently unable to use any of the keys on the keyboard. Sometimes I am even refused entry in the BIOS. After booting the systems works.
