Controlling the trains in EA Rail Simulator is fairly simple. Press A to accelerate, D to decelerate, and S to change direction. For an emergency stop, use the backspace button.
Those are the basic controls you need to get your train moving, slowing down, and stopping safely.