I was writing some text on my Windows 10 computer and suddenly characters and words that I wasn't typing showed up.
I removed the mouse and keyboard dongle and turned on airplane mode but it didn't stop. Still, text that I soon recognized as a comment I wrote on some website one month ago continued to appear.
It was written at the exact same pace I had, and all the operations I did were repeated, like writing some words, then going back to change them. Here's a little video I took after turning of the keyboard:
Unfortunately I didn't think about checking the running processes before restarting the computer. For now, the problem didn't come back.
I did full scans with multiple softwares like Microsoft Defender, Malwarebytes, Sophos and Kaspersky Virus removal tools... but without any result.
At first I though that it could be some kind of keylogger, but what would be the purpose of replaying these keystrokes on my computer?
What could be the cause of this behaviour?
Note: I see my question as been marked as duplicate of this one but I'm not asking how to remove malicious spyware from my PC. I was just searching to understand this strange behaviour, as I would have expect from a keylogger to collect data without me knowing.