Reworked Mouse control, removed GUI dependency