fix some compatible problems and change keybindings for osx