[Solved] Platformer Ladder Climbing issues

I’m trying to modify the player’s behavior when on a ladder in a platformer.
Here’s what I have:

What I’m trying to do is to disable the default platformer controls only when the player is climbing a ladder (because I don’t want the player to be able to jump while climbing). When not on a ladder, I want the default controls to be used. What am I doing wrong?

With the current code, the default controls don’t get re-activated after getting off a ladder, that’s the issue.
I’ve tried giving full custom controls but I have other issues with that so please let me know how to do it this way instead (if it’s possible).

All the controls, or just jump? If it’s the latter, it could be because you are setting jump speed to 0, but not restoring it.

That was it, thank you! Just had to restore the jump speed.