Is there a way to trigger keys on Xbox or ps5 controller

Did you try settling the trigger to "USB Device Key Trigger?" Do that, then click into the trigger box, and click a button on the controller…does the button click now show up as a trigger action? If so, you're done.

This thread seems to state that it should work for the Xbox controller, at least.

-rob.