The phrase "to keep in shape" means to exercise.