Are you using external keyboard or is it keyboard built into the device (e.g. laptop)?
Are you using wireless keyboard?
Try run the Windows Update and download and install all updates.
Try perform a Clean Boot and see if the problem persist?
Take a look at How to perform a clean boot in Windows (microsoft.com).