Trouble with the constant camera jump to the main base

I’m playing the “Wings of Liberty” campaign, when pressing the “A” or “E” key repeatedly to train Marine and Medic and press the “A” key to attack. My camera kept jumping back to the main base, which caused me to lose control of the battlefield and lose my troops.

Do you know how to resolve this situation? Help me.