Actually the key has been found.
As I didn't know the correct lock, I left-klicked with the key at the door. The
key was rebounced and put elsewhere on the ground. On second visit I found
it laying there.
I would have expected to find it in the inventory.