If your keyboard keys stop working, it doesn't necessarily mean they're broken or need replacement. From checking keyboard ...
This is the first step that you should do. You will find the Keyboard Troubleshooter in the Windows Settings app. It scans for the problem and fixes it (if possible). After the troubleshooting ...
Keyboard hardware settings. Memory issues ... He has been a Windows Insider MVP (2020) and currently owns and runs a Computer Clinic.