What key?
All modern automotive and smart apartment keys can't be cloned that way. You can't do simple replay attacks.
Are you talking about some cheap office RFID badge or something?
Because if you have any important keys for things you own that can be cloned with a Flipper, you should be upgrading them to prevent that.
My modern apartment uses RFID keys to get in the front door. I use my flipper as a backup for when I misplace my keys