How to make a ball bounce on input

I’m making a roll a ball game and I was trying to make a bounce input where after the player jumps they can launch the ball downwards to the floor so it could then bounce and gain extra height.
I figured out how to make the ball itself bouncy by putting a physical material on it and raising the restitution but then it would always be bouncy.
Is there a way to make it so the physical material is only active on input, change the restitution on input or any other way to get it to work?