add the following
lines to the bottom of your .kshrc file in your $HOME directory:
set -o emacs
alias __A=$(print '/0020') # ^P = up = previous command
alias __B=$(print '/0016') # ^N = down = next command
alias __C=$(print '/0006') # ^F = right = forward a character
alias __D=$(print '/0002') # ^B = left = back a character
alias __H=$(print '/0001') # ^A = home = beginning of line
lines to the bottom of your .kshrc file in your $HOME directory:
set -o emacs
alias __A=$(print '/0020') # ^P = up = previous command
alias __B=$(print '/0016') # ^N = down = next command
alias __C=$(print '/0006') # ^F = right = forward a character
alias __D=$(print '/0002') # ^B = left = back a character
alias __H=$(print '/0001') # ^A = home = beginning of line