Perhaps this has been reported:

-> Can't cancel an attack or a spell.

The workaround for me is the click on the opportunity button at bottom right.

Ideally, we should hit escape to cancel the attack/spell.

Arguing with an engineer is like wrestling with a pig in the mud. After a bit, you realize the pig enjoys it.