Return false when console is invisible in mousepressed