How to cancel attack command?

//ads -- adsterra.com -- native banner
?>
I frequently use F key and Ctrl+F combo to attack mobs. Once in a while I accidentally give an attack command on my own allies, Chester mostly. What usually happens is Ctrl+F command sometimes chooses to attack Chester instead of a friendly pig or an enemy, as I intended, and this attack causes all my allies to attack my beloved Chester. Or sometimes I accidentally attack a level 1-2 Spider den in the heat of battle, where I prefer to wait to become level 3 before harvesting.
Is there a way to cancel such an attack command?
Pictures about "How to cancel attack command?"



How do you cancel auto attack?
How do you cancel movement in lol?
You can:How to Attack Cancel in Smash Ultimate
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Anete Lusina, Sora Shimazaki, Somchai Kongkamsri, Pixabay