functions for peco
quick mode change and keybind for moving in insert mode