Position cursor correctly after input number