Added character insertion into text. Added handlers for left and right arrow keys to move courser left and right