Some hotels, like the Stardust, swipe the guest's key card before allowing him through to the elevators. I assume this tells the guard if it's a current card.