Changed 'Ctrl+P' and 'Ctrl+N' behavior to 'history-beginning-search-backward' and 'history-beginning-search-forward'.