Start over from v0.19.0

There were several regressions to keybindings on Mac OS X using any keyboard layout with the pull requests that were merged since the `v0.19.0` release.

This PR is a work in progress to restore those fixes without regressing the existing behavior.