The gun fires straight ahead. The electrons it produces are deflected in the desired direction by electromagnets.
I don't think it's possible to create a mechanical way of moving the gun fast enough to achieve the needs of even a low-res TV screen. If it was a physical mechanism, you can imagine it'd break all the time.