You can use a Gate. When jump happens, close the Gate. When button is released, open the Gate.
Or do something equivalent with a boolean.