Press the up arrow key or start button to move the train and the space key or stop button to stop the train. Press W or the Whistle button to play the whistle and the B key or the Bell button to play the bell.
Credit to Griffpatch for the scrolling background tutorial.