A toggle switch is a switch that has just two positions. For example, light switches that turn a light on or off are toggle switches. On computer keyboards, the Caps Lock key is a toggle switch because pressing it can have two meanings depending on what the current setting is.