If you don't find the key and realise it's actually a lost one, leading to a potentially dangerous place, someone else will and they won't be benevolent.
> If you did not have permission to enter [...] the likely charge is a misdemeanor charge of illegal entry (also known as entry without permission).
[1] https://www.avvo.com/legal-answers/is-it-breaking-and-enteri...
The real issue here is whether this instance is comparable, not whether opening doors with lost and found keys is a bad thing.
The real difference is whether they 'found' the key or if they were handed it. In this case I'd argue they were handed the key, as there was no plausible protection mechanism preventing them from accessing the key. It wasn't lying around somewhere forgotten or secret, it was in plain sight.
And frankly we need some good Samaritan laws for cases where someone responsibly disclose a vulnerability without doing further harm, even if what they did was illegal on its own it certainly should not be in light of the fact that they responsibly disclosed the vulnerability.