Sounds like the left/right is acting up for you. Obviously if the left-key is stuck it will always go to the start of the line and this would result in everything you type being backwards. It would also explain the target-jumping. Could be either the keyboard or the gamepad. Try cleaning your keyboard inside and if that doesn't work unplug your gamepad when the error occurs.