Cannot end extrusion along the z axis?
To cancel an axis constraint, such as the Z axis, hit the same axis key two more times and that will remove the constraint. You can then hit another axis key for another constraint.