4 way switch (or crossover switch)
Four-way switches have four terminals. This type of switch works in combination with two three-way switches to control electricity to lights from three (or more) locations. They support hot conductors (traveller wires), which receive and transfer electricity from each of the three-way switches.
You may also be interested to see how a two way switch works
You may also be interested to see how a three way switch works