Improved mouse handling: Added ability to enable/disable mouse