Hi SharonMatten-0635,
Have you ruled out the possibility of a faulty keyboard by trying a different keyboard? If it's definitely not hardware, run the Keyboard Troubleshooter
Click on Start > Settings > Update & Security > Troubleshoot. On the right side, scroll down and click on Keyboard. Windows will automatically find and repair any problems.
You can try reinstalling the Keyboard and Drivers:
Press the Windows Key + X and click on Device Manager.
Scroll down and expand Keyboard. Right-click on any listed keyboards and select Uninstall device.
You could also try, booting Into Safe Mode to see if your keyboard works with Windows running in a minimal state. We're looking for a driver issue or a startup program causing conflicts. Disable everything in your startup and reboot adding a few at t time until you narrow down the program causing the conflict.
--If the reply is helpful, please Upvote and Accept as answer--