I’ve seen some cockpit doors that have a combination lock so the pilot can let himself back in. Perhaps they should make that standard on all planes.
Apparently he left his keys on the dash.