how to make this things , indirect lightning

guys , how to make this thing ,
what i ask is , how to make the cube when it been hit , the indirect lightning is off ,

  1. turn indirect lighting on
  2. place your cursor on the factor value(don’t click) and press I to set a key frame
  3. go to the fame you want indirect lighting to be off and change the factor value to 0
  4. repeat step 2

I assume there is one material for the cube, thus when it get key framed all cube will follow the setting. So you need to key frame Indirect Lighting and Emissivity.