Click on the box to turn the light on and off.

A TouchSensor node has been ROUTEd to a Toggle node. The Toggle node is ROUTEd to a Light node.

Open the scene file, models\ToggleTest.s3d, in a text editor to see how this is done.