Hey, this is a generic issue which all should be facing in the third-player movement. If a player is moving and you press the alt key, the focus shifts to the window menu in the browser and when you unpress your movement keys, the player still keeps on moving as playcanvas never unregister that unpressed key. (More evident on firefox)
I wanted to know is there any workaround for this issue?
Keep pressing any key i.e W/A/S/D and while pressing that, press and leave alt key
Side Note:
This issue is similar to the issue reported in github but it didn’t call onblur function and that’s why have to find another workaround for it.
You can probably listen to the window’s lose focus or blur or some other event so that the game pauses or it disables controls/etc when something like this happens.
You may also be able to override the modifier key in which case, I would check StackOverflow for a generic browser solution.