Tracking Player Cancel Input?

     Long time Maker, first time poster.

I've been conceptualizing a battle system that uses events (I'm a negligible scripter), but I've come upon a hiccup. What I want to do essentially is have a bar at the bottom of the screen that fills up, and draws on a hidden variable, so that once the bar is full the player cannot take any more actions. Think FF13 battle system. The problem I'm having is the player wanting to cancel out the last action they selected. I need to track that so I can update the graphic on the bar to take away the last skill they selected, probably in a common event that's parallel processing or something. Is there a way to do this? A script call, or some kind of button input or something? I already know how I'll update the graphics, but I need a way to change a variable when the player backs out.

EDIT: If not that, then at least can someone refer me to which lines of the default Battle Engine (or alternately, Battle Engine Yanfly) deal with the cancel input and removing a skill from the queue?

Original thread: https://forums.rpgmakerweb.com/threads/tracking-player-cancel-input.37767/