Fixed bug with mouse when going to the upgrade menu with the mouse button pressed.