change input direction