Check if the player is pressing the 'action' button. Use this for when the player might be in a scripted sequence but might still press the jump button.
Example:
while( self ActionButtonPressed() )...