rayray Here is your template that has been modified to check to see if the buttons causing the jump are still being pressed during a jump. If the buttons that can cause the jump are not being pressed in some way while the platform object is jumping, then you reduce the platformer's Y vector.
As — stated, it doesn't have to be Y/4, like in my example, it can be whatever number feels good to you (equation, constant, etc).
[attachment=0:ua8ev4c0][/attachment:ua8ev4c0]