I’m sorry to hear about the issue you’re experiencing with your keyboard. Here are a few steps you can try to resolve the problem:
Check for Physical Damage: It’s almost impossible for several keys on your keyboard to malfunction simultaneously. However, if you have dropped your keyboard recently, hit it with something, or spilled a liquid on it, some keys may have been damaged.
Keyboard Test: To determine if the keys are functioning correctly, go to a keyboard test website, press the keys that are not responding, and check if they register successfully during the test.
Update Keyboard Drivers: Sometimes, keys cease to respond simply because the keyboard drivers go corrupt. You can try updating your keyboard drivers.
Run the Keyboard Troubleshooter: Windows has a built-in troubleshooter that can detect and fix issues with your keyboard.
Uninstall and Reinstall Keyboard: If the above steps do not resolve the issue, you can try uninstalling the keyboard from the Device Manager and then restarting your PC.
If the issue persists, it might be time to consider getting a new keyboard. I hope this helps!
https://www.makeuseof.com/fix-keyboard-keys-not-working-windows/