Fix to switch <Up>/<Down> and <C-n>/<C-p> mode