They waited until they became worried that something was wrong and it was their duty to open the doors to their king's private room.
"took the key and opened the doors"