Tabs and mouse position

Corrected tabulation. Now checks whether the mouse is inside of the console before considering the event.