Mousemove Events Fire When a Modifier Key Is Pressed

A surprising quirk of the mousemove event is that it gets fired when a modifier key is pressed on the keyboard (once on key down and once on key up).

For example, run the following in your browser and press the control key without moving the mouse.

document.addEventListener("mousemove", (ev) => console.log(ev.ctrlKey));