The first idea that comes to my mind is to make a buff that contains your keypress events and add it to the player. Now i don’t know if there is a stackable way of adding the buff to the player but you could make a free item to apply it as a workaround.
Depending on what you want it to do, you could make the item aesthetically purposeful to rationalize why it would need to be equipped to use that interface.
Replication is VERY important when dealing with a Widget. Of course this is only while equipped. But I assume that you can probably do something is a similar manner.