Check if the player is pressing the inventory button
Example:
if ( self InventoryButtonPressed() ) ...