It's a ledge grab, it just looks silly with the pixel art. I added it for leniency for the jumps.
Thank you for reply. The thing is that when I end up in that situation I can "ungrab" the ledge, I press in all directions and the player is stuck there.
okok I see. Let me check the animation transitions. Thank you.