Auto type text improved with interaction and better new line handling