A magnet can be attached to your keys so it looks like a prox pass. No security guard is going to argue about the contents of your keyring.
I've had success with keeping (small) pocket knives on me. Those metal detectors are almost always badly tuned since false alarms are disruptive. I used to consider getting some kind of fancy thermoplastic pocket knife but frankly any cheap small knife works.