Complex sentence: The professor is actually controlling the robot with his pen transmitter, all the while trying to fool Dr, Gustav, but one of the spies realizes the pen is important and snatches it away, breaking it.
Split into simpler sentences: The professor is actually controlling the robot with the pen transmitter, all the while trying to fool Dr. Gustav. One of the spies realizes the pen is important and snatches it away, breaking it.