It sounds like you and I have the same problem. Do you have Sophos on your computer? If so it's down to the keylogger protection in the software.
Check out this link and instructions are there on how to fix it.
Hope it helps.
Paul.
https://support.home.sophos.com/hc/en-us/articles/360029663072