Survival Inventory

Looks awesome! Is there a way to detect if the player has a certain item in their inventory? For example, interacting with a door, check if the player has a key, only open if that is true.