If your keyboard keys stop working, it doesn't necessarily mean they're broken or need replacement. From checking keyboard ...
When you plug a USB device into your computer, it recognizes it and installs its driver (if required). Sometimes it fails to do so. Therefore, try removing and then replugging the Keyboard.
Keyboard hardware settings. Memory issues ... He has been a Windows Insider MVP (2020) and currently owns and runs a Computer Clinic.