How input d-pad with button for animation?

I’m working on a platform jumping game, and I’m working on moves like mario. I’m trying to figure out how input a command the move d-pad up with press a button to do a move like a long jump. Does anyone know how I can do that?