Yeah, there's an annoying bug with Unreal Engine web games where bringing up any sort of menu "releases" the mouse. To fix this, you have to click on the game again after you've chosen your upgrade, and it should recapture the mouse.
Thanks for playing! :)