Fix OS X keyboard control