Your Mac will ask if you’re sure you want to restart (unless you have unsaved changes in some apps). Press Return to confirm, or Esc to cancel.