If you must swerve, you should:

If you must swerve to avoid a hazard, apply a small amount of pressure to the appropriate handle grip. To swerve to the left, press the left handle grip, then press the right to recover. To swerve to the right, press the right handle grip, then the left.
DMV Writen Test