Check OS before doing key binding