Update OSX bindings to support caps-lock

Sorry for the messing around. This PR is correct and adds the caps-lock functionality to the OSX bindings.