That's why one of the steps in the keyboard troubleshooter I gave you is to try the on-screen keyboard to rule out it's the physical keyboard. Did you read the steps?
Those are steps I've compiled over a dozen years in forums which have been used by tens of thousands of consumers to find and fix keyboard problems. Every single step is one that has helped someone many times or it wouldn't be in the list. During that same period of time I've been awarded the highest award in the tech field every year for my work in forums.
If any steps cannot be performed normally then try them in 1) Safe Mode with Networking (so you have internet) or 2) Safe Mode, accessed by one of the illustrated steps in this guide: https://www.digitalcitizen.life/4-ways-boot-saf.... You will need to use your password to get into Safe Mode as a PIN is not accepted.
In Safe Mode go into the Device Manager to try to Update the Keyboard Driver, If that fail uninstall the keyboard driver, restart PC to reinstall it.
If Safe Mode doesn't work then go into Repair Mode by one of these methods: https://www.tenforums.com/tutorials/2294-advanc... to try to System Restore, Uninstall Updates, or do a Reset.
If none of those help you'll need to create bootable media to try the Reset which may be failing due to corrupted onboard files it uses, or do a gold standard Clean Install in this link which compiles the best possible Install of Windows which will stay that way as long as you stick with the tools and methods given, has zero reported problems, and is better than any amount of money could buy: http://answers.microsoft.com/en-us/windows/wiki...
To create bootable Windows 10 Installation Media (on another PC if necessary) install Media Creation tool and follow the steps toward the bottom of the download page here in the section "Using the tool to create installation media:"
https://www.microsoft.com/en-US/software-downlo...
Insert media, boot it by powering up PC while pressing the BIOS Boot Menu Key for your PC maker given in this chart: https://www.sysnative.com/forums/hardware-tutor...
If the media won't boot you may need to enter BIOS/UEFI Setup (pressing key given in chart in link above) to turn off Fast Boot or Fast Startup first.
Choose the boot device as a UEFI device if offered, then on second screen choose Repair Your Computer, then Reset.
If that fails choose Install Now, then Custom Install, then at the drive selection screen delete all partitions down to Unallocated Space to get it cleanest, select the Unallocated Space, click Next to let it create and format the needed partitions and start install - this makes it foolproof.
There is a step to rescue your files first using the booted media if you don't have them backed up: http://answers.microsoft.com/en-us/windows/wiki...
You will get and keep the best possible install to the exact extent you stick with the steps, tools and methods in the linked tutorial. It's a great learning experience that will make you the master of your PC because you will learn everything that works best and how to apply it with your own hands.
I hope this helps. Feel free to ask back any questions and let me know how it goes. I will keep working with you until it's resolved.
--Greg Carmack
Senior Volunteer Moderator
Windows MVP 2010-20
________________________________________________________
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.