Mark mouse events as changing the scene.
Put keyboard events in their own functions.