yeah that's similar to what I did, except I made the Escape key do the double stopcasting thing while still functioning like the game's Escape key.

too bad it's impossible to make it 100% functional though due to taint and secure code... so you end up sacrificing the ability to skip cutscenes and to use it as a de-target key if you use sticky target. I can post it if you want though