Press to call an event and release to call another event

Hello guys.
I just committed myself to the new input system, which is kinda awesome, BUT I’m really struggling to get the code to work.

I’ve got two methods to handle Jumps, onJumpInputDown and onJumpInputUp.
No need to post the code for these, just know that inputdown does all the work and inputup just reduce the jump.

Its was pretty easy with getkeydown and getkeyup, but how can I handle these two methods with the new input system?

Thank you very much.

// Equivalent way to GetXXXUp/Down
if (jumpAction.WasPressedThisFrame())
    onJumpInputDown();
if (jumpAction.WasReleasedThisFrame())
    onJumpInputUp();

// Alternatively, with callback on jump button action.
void OnJump(InputAction.CallbackContext ctx)
{
    if (ctx.performed)
        onJumpInputDown();
    else if (ctx.canceled)
        onJumpInputUp();
}

Thank you very much.