Adjust key translation to work with vim editing mode.