fixed bug related to command key on osx