Added toggle function and mouse grab toggle to Inputter