Your player should have a position and velocity vector, where the latter determines the change in the former per time.
Set the Y component of the velocity vector to zero when the player hits the wall. Gravity continuously increases it, leading to the accelerated fall.