I just tried it in macOS and it works without any issue, What I saw what that the values in the mouse exampke are too small to perceive the difference (this is done not avoid your cursor going crazy). I just remove the minus sign in the X coordinate on the second mouse.move statement and over time you can see the cursor crawling to the right.
Thanks for having me try this again. Somehow it's working now, I uploaded the previous sketches I saved and after uploading I now get key presses and mouse movements.