Two scene and actionManager question

Hi,I have two scenes. when one scene is hide , the actionManager in the hidden scene still works .
is there a way to avoid that?
see line 117 ~ 125 and 151 ~ 153
after 3 seconds , the hand is hidden , but actionManager still work
https://playground.babylonjs.com/#L0IMUD#118

The good idea here is to call scene.detachControl() when you hide it (and call attachControl() back when you display it)

Thank you for your quick reply I will try it