When you reach the ceiling hatch, press space to go back. Click on the door buttons and the arrows. Some of the mechanics are automatic.
I could not have made this without Totodile02. Check out the studio!