In a power tool, a method for braking and controlling an electric motor, the motor including a housing, a stator supported by the housing, and a shaft rotatably supported by the housing, the motor being selectively connected with a power source to rotatably drive the shaft, said method comprising: