Improve a vim-mode guard in leoKeys.py