Provided you have a lock-key system integration that support this feature.
1. Go to 'Summary' tab Arrival list, for checked in guests you will see a 'Create Key Card' button. Click it.
2. Enter the time you want the key to expire and click 'Create', this will update the key. If you have a key card system put the card on the keycard reader.