Changes/fixes for the textinput object

Fixed text duplication while using the arrow keys to move a textinput's
indicator
The textinput's indicator will now move to the beginning or end of the
object's text when using the left or right arrow keys while the object's
text is selected