Is there a way to get if a key from a variable is pressed?

So I’m making a Blueprint for Items that can be equipped by the Player in the Inventory. The Player can select different Items with different functions for example an axe with which the player can hit on Left Mouse Button or an apple which the player can eat on right mouse button. My idea was to give every item an Structure Array Variable out of a Key and the name of the Function which should be called when the Key is pressed. My problem is that I didn’t found an Event for if an Key from a Variable is pressed. Can somebody help me?

You can’t specify handles to functions in blueprint like you can in C++.

The standard way to do this is using a blueprint interface. Then, all the various blueprints can respond in a way appropriate to them, when a key or button is pressed.