Is there any way to keep momentum of my player character in the air?

right now, if i stop pressing forward while in the air the character loses velocity. im trying to mimic more of a super mario jump where he seems to keep the momentum of going forward while in the air. Any way to achieve this?