Here is what I just commented on in the question:
@Ricardo the question does show a lack of research and vagueness. Keycard vs keychain as original listed, no model numbers or even pictures, which is asking us to guess at a possible method it is working by, which makes it open ended. If you said "How does Model X (part number: yyyzzz) Keycard Switch work? I have looked for a schematic or datasheet but can't find one. It does X, Y and Z" that would draw less negative attention.
Asking for essentially Educated guesses are not really conductive to the site, or to you as the asker. We have very little information to work on. And I didn't downvote it either.
As for what we mean by like to actual devices or datasheet, WE mean that you should be providing that for the part you need to understand. Like a manufacturer and model number of the key card switch.