When you're a fly it's pretty easy, since you're very tiny.
All you need to do is fly through the security card slot.
As a human, it's a little more difficult. I hope you remember what you saw as a fly.
You must remember those beams of light in the slot.
You should have noticed that walking through some of them triggered part of the lock, but that other beams didn't.