Fix OSX and Linux keymaps