How to gradually increase gravity with the press of a key

I am building a jumping game like dune and tiny wings. I want to be able to make my character fall faster when in the air with the press of a button. Please help.

Are you using the 2D Physics? Then change the Gravity Scale too a higher value. If you don’t want it to accelerate forever then set the Linear Drag a bit higher.