These electrons are moving back and forth. Actually ... There's no magic behind this; it's just the way things work. Just as the electrons move in the wire, they move in the transmitter's antenna.