Fixed arrow key deleting last char