わざと + [verb] わざと + [verb ない-form] わざとじゃない
Most of the time わざと points at something mean or sneaky, so it turns up in accusations and apologies. わざとじゃない is how you say "I didn't mean to".
It can be neutral too, when someone does something deliberately for a good reason.
わざと is about intent: they meant to do it. わざわざ is about effort: they took the trouble to do it, often for you.