Fix an issue where the mouse would not be released when the main window loses focus.
Pause playback of the current scene if the main window loses focus.