Hi Joyceleyn. I'm Greg, 10 years awarded Windows MVP, specializing in Installation, Performance, Troubleshooting and Activation, here to help you.
See if you can System Restore to a point before the problem began following this guide: https://www.windowscentral.com/how-use-system-r...
System Restore is your first line of defense and can take you back to a point before a problem began like a time machine. If it doesn't help then you can undo it. Read about it first in the tutorial above and then try restoring to just before this started.
If the problem repeats or System Restore doesn't work then check which Windows Updates were installed at Settings > Update & Security > Windows Updates > Update History, uninstall them there or System Restore again, then immediately check for and block the Updates with the Hide Updates tool explained here which I would install now so it's ready:
https://www.tenforums.com/tutorials/8280-hide-s...
Run the Hardware Troubleshooter:
Type CMD in Search box, Run Command Prompt as Administrator, copy and paste or type the following command followed by Enter key:
msdt.exe -id DeviceDiagnostic
Run the Keyboard Troubleshooter at Settings > Update & Security > Troubleshoot.
If this began within the recent past, See if you can System Restore to a point before the problem began: https://www.windowscentral.com/how-use-system-r...
Check which Updates were installed at Settings > Update & Security > Windows Update > Installed Update History and try uninstalling any from around the time this started. If they return and cause the same problem then hide them with the Hide Updates tool: https://www.tenforums.com/tutorials/8280-hide-s...
If this was caused by a Version Update then for 10 days you can roll it back in Settings>Update & Security>Recovery and then hide it until it matures using the Hide Updates Tool.
What also might work is to go into Device Manager, reached by right clicking the Start button, choose the Keyboard device, on Driver tab try Updating the driver automatically.
If this fails from the same location try rolling back or Uninstalling the Keyboard driver, which works in a surprising number of cases where keyboard is messed up by Updates. Restart PC to reinstall driver.
See if the On-screen Keyboard works at Settings > Ease of Access > Keyboard > Turn On the On Screen Keyboard.
Try resetting the keyboard: http://www.thewindowsclub.com/reset-keyboard-se...
Try plugging in a USB keyboard to see if it does the same thing.
I hope this helps. Feel free to ask back any questions and keep me posted. I will keep working with you until it's resolved.
________________________________________________________
Standard Disclaimer: There are links to non-Microsoft websites. The pages appear to be providing accurate, safe information. Watch out for ads on the sites that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the sites before you decide to download and install it.