added handling for ^A, ^E and left/right arrows in entry boxes.