Variable will only sometimes set in HUD

add “set input game mode” before the Set Show mouse cursor in the 2nd image to get rid of the mouse cursor after you close the widget.