Press green flag to reset the animation. Press the crane to turn the electromagnet on. Press the space bar to turn it off.
Shout out to Mariel the crane operator who helped me understand cranes!