code: def on_pbnNext_released(self):
          
          current_step = self.get_current_step()
  
          if current_step == self.step_kw_fields_mapping:
              try:
                  self.step_kw_fields_mapping.get_field_mapping()
              except InvalidValidationException as e:
                  display_warning_message_box(
                      self, tr('Invalid Field Mapping'), str(e))
                  return
  
          if current_step.step_type == STEP_FC:
              self.impact_function_steps.append(current_step)
          elif current_step.step_type == STEP_KW:
              self.keyword_steps.append(current_step)
          else:
              LOGGER.debug(current_step.step_type)
              raise InvalidWizardStep
  
          # Save keywords if it's the end of the keyword creation mode
          if current_step == self.step_kw_summary:
              self.save_current_keywords()
  
          # After any step involving Browser, add selected layer to map canvas
          if current_step in [self.step_fc_hazlayer_from_browser,
                              self.step_fc_explayer_from_browser,
                              self.step_fc_agglayer_from_browser]:
              if not QgsProject.instance().mapLayersByName(
                      self.layer.name()):
                  QgsProject.instance().addMapLayers([self.layer])
  
                  # Make the layer visible. Might be hidden by default. See #2925
                  treeroot = QgsProject.instance().layerTreeRoot()
                  treelayer = treeroot.findLayer(self.layer.id())
                  if treelayer:
                      treelayer.setItemVisibilityChecked(True)
  
          # After the extent selection, save the extent and disconnect signals
          if current_step == self.step_fc_extent:
              self.step_fc_extent.write_extent()
  
          # Determine the new step to be switched
          new_step = current_step.get_next_step()
  
          if new_step is not None:
              # Prepare the next tab
              new_step.set_widgets()
          else:
              # Wizard complete
              self.accept()
              return
  
          self.go_to_step(new_step)
docs: Handle the Next button release.
  
          .. note:: This is an automatic Qt slot
             executed when the Next button is released.