Custom FPS Controller Problem

So I’ve been trying to program a custom fps controller and I’m using set physics linear velocity to move the character around, if i run into a wall while in the air it’s sticking to the wall and not falling to the ground unless i release all the movement keys. How would i stop this from happening?