Turn off all electricity to any affected switches.
Remove the existing switchplate cover with a flat-head screwdriver.
Remove the existing on/off electrical switch, also by using a flat-head screwdriver.
Gently pull the switch and its wiring out from the outlet box.
Unscrew the wires from the terminals on the existing switch, again using a flat-head screwdriver. There will be two hot wires and a bare ground wire.
Discard the old switch.
Attach the two hot wires to the new speed switch, using the switch's screw terminals.
Attach the bare ground wire to the green grounding lug screw on the back of the switch.
Gently push the wired switch assembly back into place in the electrical box.
Using the flat-head screwdriver, reattach the cover plate.