Simple controlled input with cursor, caret jumps to end on edit