Create inputHandler