My learning agents won't stop jumping, how do I fix this?

What is the proper way to implement jumping with machine learning agents?

Every time I give my FPS learning agents the ability to jump they just keep jumping non stop. I’m sure I’ve implemented it incorrectly. I used a bool action that triggers a jump.

I also added a null action that can block the jump action in hopes that the agents would use this to stop jumping as much but it didn’t work