This is passed as the parameter to all event orginating from TWizard. If the event was a particular OnXXXXCommand, the variable $cancel determine if the step will be changed. e.g in handling the "next" command setting the parameter, $param->cancel = true will not result in a step change.
The parameter also contains the current step index, and the next step index.