Form Buttons in action?

I have a form with 2 buttons. I need to run the associated action with ‘Continue’, the other is a ‘Skip’ button that i need to skip all the logic in the action.

How can this be acheived? I have tried this.. But there is no reference.

  const action = event.request.body?.action;

  if(action === 'skip'){
    return;
  }