S04 now polls for the mouse position. Keyboard now handles events generated from code and not from physical devices.