Move the code so that we don't do the unnecessary replacement of `Ctrl` to `Cmd`.