To move between two states by the same action. A toggle remembers where it is; that is its whole function.
First recorded in 18th-century nautical use for a pin thrust through a rope loop to fasten it, of uncertain origin, perhaps related to the dialect verb 'tog' (to pull); the two-position pin carried directly into the modern switch.
A single action that carries a setting between two states and remembers which one it left. The house uses it wherever a choice is binary and reversible without cost.