I’d opt for the Enhanced Input :
The old methods are already deprecated, but do work out of the box in UE5.
Could you show the input mapping in the project settings?
I’m having the exact same issue.
Could you show where exactly are you trying to add input? Perhaps you’re trying it inside a function? That will not work, for example.