If you toss a coin straight up while riding in a train, where does the coin land when the…

If you toss a coin straight up while riding in a train, where does the coin land when the motion of the train is uniform along a straight line track? When the train slows while the coin is in the air? When the train speeds up while the coin is in the air?