Problem with ActionManager / InputManager

BabylonJS 4.2 doesn’t seem to respond to key presses, if control is programmatically detached and reattached again.

However, if the browser loses focus and regains it, the input works.

Pinging @PolygonalSun who may help with the issue.

Lemme take a look and see what’s going on

So I am able to repro the issue that you’re seeing in 4.2. I haven’t found the root cause yet but when I tested it against our 5.0 alpha, the issue was no longer present and the code worked as intended. This leads me to believe that the issue has been addressed. I can still dig and see if I can find out why was doing this but this bug has a fix in the current release pipeline.