Adds the ability to clear the target and cancel target selecting mode.