Using Take Recorder to record light turning on and off

Hi guys, I have a light that is linked to the mouse button. In gameplay mode I can turn it on and off with the mouse. I want to record this using take recorder. It gets recorded in sequencer, however, there is no change when playing it. it looks linked properly, I have the on and off keys (that were recorded properly), but when playing the light stays on.
Thanks

I have the exact same issue . Any solution ?