set enable-bracketed-paste on

"\e[A": history-search-backward
"\e[B": history-search-forward