Answer:
You can try reinstalling your keyboard drivers.
You can do this by right clicking the windows icon in the bottom left and click on Device Manager, find the keyboard tab and expand it, right click on your keyboard driver (it will be the same name as your keyboard, or it might have a generic name), then right click it, and press uninstall, then restart your computer to see if it worked.
If that didn't work, you can try reinstalling the USB controller drivers.
You go into device manager just like before, but find the 'Universal Serial Bus controllers' tab and uninstall the devices there, then restart.
If neither of those work, you sadly might have to get another keyboard.
Hope this helps