If the key was not lost in the dormitory, it must have been lost in the office or in the corridor or in the street, and since the door was locked with it when the dormitory was opened
The key was in the hallway