Type what you want to. Enter to take new line. Up arrow to edit previous line. Left arrow to clear line.
Added backspace sensing to erase your mistakes :) Also added enter sensing and shift sensing for capital letters and more characters :D