Press the left/right arrows to make it move. Press the down arrow to make it stop. When the train is offscreen, the thought bubble tells how far. Press space for a whistle! You can change the train by pressing 1, 2, or 3.
Credits go to @rocket-testing for the remixed project and @geek62 for the original. The several cars should work now.