The flipflop's set and reset inputs are each a wired with a 1K pull-up resistor. The toggle switch connects either input low. So it either sets or resets the flipflop.
The flipflop output is directly connected to /INTIN (slot pin #28), the normal interrupt input. So, yes, this was a simple...