Fix osx keyboard control that seems to have been broken by a new version of pyobjc.