Hello,
Please run Keyboard troubleshooter from Settings app > System > Troubleshoot > Other troubleshooters. See if this helps you.
If that doesn't helps, try this:
- Press Windows + X, select Device Manager.
- Under Device Manager, right click on your keyboard device/driver and select Uninstall. Click OK.
- Then click Action > Scan for hardware changes.
- Close Device Manager and reboot.
Let me know if this helps!