Updated the position of the cursor on the user input box to be at the end of the text when the user uses the arrow keys to navigate through the input history in order to better match the behavior of a terminal.
Signed-off-by: Ilan Bigio <ilan@openai.com>