To do it, you need to steal some food at night from the black lunchbox in the fridge.
If the lunchbox hasn't appeared yet, or if the captain says he doesn't need the key, keep progressing through the story until he starts thinking about how to open the vent.