Animate a lamp in the game engine

I have this basic lamp animation. I have tried to use it as a switch on for an object but it doesn’t save. I used a tutorial which basically insert a key frame from frame 0 to 1I applied the key bricks and action and it should save even with a dope sheet user duplication.

I used 2.78.

light.blend (457.6 KB)