Make keybinding code more compact
Buffer switch keybinding for Mac
Add known supported environments