typing in the middle of an entered phase moves the cursor to the end likely bc of something with the state updates