Used to happen to me all the time until I switched mice. It was an optical then I switched to a laser one which is a logitech G5 and not had the problem since. So if you cant sort it try replacing it since it might have a fault I know mine did tried everything to fix it until I decided to replace it.
I do stuff like that on my Mac where I compose beats and stuff just as it's a genre that I'm not massively into and it's different to the music I play. But my keyboards are really here because I'm a pianist and my Piano is downstairs.


