There was not enough oxygen left within the cockpit to eject them into the emptiness of space, fortunately. However, Keith did grab the door firmly with his free hand to prevent any incident from happening.
Afterwards, he bent both of his legs and jumped in direction of the door. They got there after only a few seconds of being oxygen deprivated, since Keith had actually parked them as close as possible to the space station
Remembering the later's explanation, Leyla grabbed onto one of the protuding parts at the edges of the door and let hi hand free. Keith then proceeded to turn the wheel that was sealing the door and managed it in another couple of seconds