Go to Settings > Accessibility > Keyboard > Ensure that Sticky Keys, Filter Keys, or Toggle Keys are turned off.
Restart your computer in Safe Mode to see if the problem persists.
Open Device Manager > Keyboards Right-click your keyboard driver and choose Uninstall device. Then restart your computer to reinstall it.
You may create a new User profile to check the issue.