Answer:
It should keep going in a straight line.
Step-by-step explanation:
Space has no air, so no Friction that could stop the ball, no gravity to affect the ball, and no physical object such as a planet that could come in contact with it. So the ball will continue in a straight line for an incredibly long time until it possibly hits an asteroid or something but besides that fact, it will continue in the direction he threw it.