I have setup a box2d world with a keyboard controlled player. The player can walk and jump. How do I prevent the player from "sticking" to walls while jumping and pressing the directional key towards an object?

![enter image description here](https://i.stack.imgur.com/6CjZs.png)