Before you start: create a System Restore point so you can undo changes, and sign in with an administrator account. Some steps need Command Prompt (Admin), which you can open with Win + X.
- Clean the Keyboard
- Run the Keyboard Troubleshooter
- Disable Filter Keys
- Configure the Repeat Delay and Repeat Rate
- Update or Reinstall the Keyboard Driver
- Manually Update the Keyboard Driver
- Automatically Update Your Keyboard Driver
- Use an External Keyboard
Still not fixed?
Run the general Windows repair sequence: install pending updates, then run DISM /Online /Cleanup-Image /RestoreHealth followed by sfc /scannow, and restart. If the problem started recently, restore from a System Restore point. You can also browse more Hardware & Drivers guides.