I am trying to write a script that can detect when a bluetooth keyboard is connected or disconnected from my mac and perform an action. I also need to make sure the keyboard is