How would I make a dash system that doesn't fling my character each time they somehow manage to slighty get off the ground?

Currently, I’m pondering how to make my first dash system, since I have been so focused on purely the creation of my combat that I didn’t think of the other minor aspects that might have to be added. Then I look at what is deprecated and question, how am I supposed to do this.