I mean, you don't exactly have to be a government agent to sneak into a hotel room.
"Hey, I think I lost my keycard, can you run me another one? The name's Farr...room 221."
"Hey, I think I lost my keycard, can you run me another one? The name's Farr...room 221."
As for getting a replacement key, yeah, that usually does require some work. In lieu of asking for a replacement you can call the front desk on your cellphone and tell them you're standing outside your room and can't get to your key, and can someone come unlock the door for you.