Equivalent of a mechanical toggle switch