toggle

noun
  1. a short rod or pin passed through a loop to fasten something
  2. a switch that can be pressed to turn something on or off
  3. Usage: computing
verb
  1. to switch between two different states, options, or modes
  2. to fasten with a toggle

Examples