If an astronaut wants to come back from an open space into the spaceship, then he should throw some object in direction opposite to the direction of motion of spaceship. As a result of this, the astronaut will acquire some velocity towards the spaceship in accordance with the law of conservation of momentum and thus he can return to the spaceship.