You can find the gate key in the room with the record player (walk in via the front doors, and it's the first door on the left), and it can be used to open the gate. It's on the side of the bookshelf, on the opposite side of the room from the ping-pong table. Best of luck!