Try these steps in order:
- Press the Shift key 5 times.
- If the Sticky Keys prompt appears, choose No.
- Then test the Enter key again.
- Run the keyboard troubleshooter.
- Open Command Prompt.
- Run:
msdt.exe -id KeyboardDiagnostic - Complete the troubleshooter, then test the keyboard.
- Reinstall the keyboard driver.
- Open Device Manager.
- Expand Keyboards.
- Right-click the keyboard and choose Uninstall.
- Restart the PC.
- If the issue started recently, check recent Windows updates.
- Open Settings > Windows Update > Update history.
- Review the last installed KB updates.
If the problem happens in all apps, these steps help determine whether it is a Windows keyboard issue rather than a single app problem.