when i press pause my charcher2d jump

When I press pause the 2D charcher jumps because I played a mobile game with the touch screen and every time I pause the game or click the button to remove the volume the character jumps, how can I make sure that if I press the buttons they work but the jump doesn’t activate because it’s a disadvantage otherwise I risk losing only if I want to remove the volume. please help me it’s a game similar to the t.rex one on google but for mobile the player only jumps and does it if I press the screen but I wish it didn’t do it if I press the buttons

Change the button to mouse filter stop. You may have to change your player script. But try changing the filter first.

i tried and the only changes is now i cant pressed the button i i flick on mouse filter stop