Instructions
Press the "Square" button to open the Popit menu while editing your level. Highlight "Tools Bag" and press the "X" button. Press "R1" to access the Gadget menu. Highlight "Magnetic Key Switch" and press the "X" button. Use the left analog stick to position the key switch in your level. Press the "X" button to place the switch. Press the "Circle" button twice.
Highlight "Popit Cursor" and press the "X" button. Use the left analog stick to highlight the electrical wire sticking out of the key switch. Press the "X" button to pick up the wire. Use the left analog stick to position the wire over the piston that you want to control. Press the "X" button to attach the wire to the piston.
Use the left analog stick to highlight the key switch in your level. Press the "Square" button to open the switch behavior menu. Change the switch behavior to "Speed." Adjust the trigger radius of the switch by pressing "Right" on the D-pad until the radius becomes as large as the screen. Press the "Circle" button to save the changes.
Open the Popit menu and select "Tools Bag" once again. Highlight "Magnetic Key" and press the "X" button. Use the left analog stick to place the magnetic key on a movable object in your level. As the object that holds the key moves closer to the key switch, the piston will begin to move faster. As the object moves further away from the switch, the piston moves slower. Once the object moves outside of the switch trigger radius, the piston will stop moving.