I have a couple of suggestions / comments.
I have seen similar issues with the keyboards that have the touch pad installed on them or notebook computers with the synaptic touch pad. Most of the time it was due to static electricity conducting on the pad.
- So if this fits then try to disable the touch pad.
Also I have seen this happen with wireless mice that are faulty or running low on battery power.
Does this happen in a safe mode or recover mode?
I doubt it is a virus/malware IMO.