The function RotateWithController() will always rotate the GameObject because there is no condition to stop it from rotating if you press a button on the controller or the mouse.
RotateWithController()
GameObject