I was trying to disable driver signature. After restarting the computer, I cannot press F7 to disable as the keys on the keybord do not work.
I cannot also press Del or F11 to enter the BIOS and choose BOOT methods as well.
Once the computer is finished booting, the keyboard works fine.
Why it does not work before booting?
It is a USB keyboard.