I have a UI button. I want a function to be called whenever I press a specific key on my keyboard while my mouse is hovering over the button. I want to make something similar to UI in Ark SE where you can press 'T' while hovering over an item in your inventory to transfer it.
The button component
OnClick() has not received keypress input, only mouse clicks.
I am using the New Unity Input System
I have tried using a
ScreenPointToRay however this did not work as I do not have colliders on my UI and it is part of a