Dive mechanic in platform game


I have a simple 2D platform side-scroller game for 2 players. I can double jump or move left and right. How would one go about making the characters ‘dive’ back to the ground when S is pressed - basically like a sort of opposite to jumping, so that when I press S mid-air I can dive towards the ground.

Thank you!