This hasn't happened to me in a while, but I have encountered it fairly frequently in the past. The best I could deduce is that I was moving to quickly and may have been accidentally hitting another key or combo of keys. I am currently using Windows 11, but
it did happen when I was on Windows 10. I have not been able to successfully troubleshoot, but I can sympathize with how annoying it is when it randomly happens!
___________________
Weight of the Word Indexing Service

President, American Society for Indexing, 2022-2023
Officer ASI/Rocky Mountain Chapter, 2012-2016
Member Indexing Society of Canada
Member Editorial Freelancers Association
Member Publishing Professionals Network
Member International Association of Culinary Professionals