Im not sure how the HUD class handles input but you could try and handle that input in a player controller. Player controller class has a GetHUD node that you can cast from and call functions with.
Im not sure how the HUD class handles input but you could try and handle that input in a player controller. Player controller class has a GetHUD node that you can cast from and call functions with.