Ensured that if more than 1 key is available and authentication fails for at least the last one, door will open. This is by ending the loop on 1st available key.
Sometimes PCD driver would hang, causing inability to read NFC keys. This is to fix the issue, increasing loop time only slightly.