This would be very useful for disabling ingame functions while the player's menu is open so that it doesn't interfere with using the menu.