Restart your computer a few times to see if it helps.
Open Start > Settings > Update & security > Troubleshoot
Scroll down
Click Keyboards
Click Run the Troubleshooter
When complete, restart to see if the problem is resolved.
Try connecting the keyboard to a different USB port if its a USB wired keyboard.
Press Windows key + X
Click Device Manager
Expand Keyboards
Right click keyboard
Click Uninstall
Exit Device Manager then restart
Reset your BIOS defaults:
https://www.groovypost.com/howto/reset-pc-bios-...
Try the keyboard with another computer to see if it works.
Check for the latest driver updates for your computer.
Try disabling the RAID settings in the BIOS If you have that configured.
If that does not work, try using SharpKeys to remap the keyboard:
https://www.groovypost.com/howto/easily-remap-k...
Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.