Crouching in 2D

So recently i made “StateMachine”, where is almost every state that i need too have, but I have problem with “crouch” state. It suppose to go back to ground state whenever user releases “duck” button, but whenever i press the button i’m stucked in crouch state

If you want help figuring it out, you’ll need to post the relevant code. Remember to use the </> button in the post editor to format your code with indentation and syntax highlighting.