Answer
The light beam has exactly the same speed, c, relative to the ground as it has relative to the moving train. This is different from the ball's behavior, which appeared to move faster when viewed from the ground.
Work Step by Step
The speed of light is the same for all observers, in all reference frames. This is Einstein's second postulate of special relativity.