Press F to toggle the light on or off. Pretty simple code actually. Also you can move to see the shining effect on objects.
Thanks to my noodles to make me think of this script.