Add an activation switch to key item menu or SAI key item button script?

I'd like to be able to specify a switch to selectively prevent the key item menu being brought up, for example during cutscenes. I'm not sure whether this would be a modification to this script or to a standard Ace script.

Here's the script I'm using:

http://forums.rpgmakerweb.com/index.php?/topic/1536-sai-key-item-button/

Many thanks for reading!
Got it, I'll PM it to you, as I edited the core script.
Awesome, many thanks!!

Original thread: https://forums.rpgmakerweb.com/threads/add-an-activation-switch-to-key-item-menu-or-sai-key-item-button-script.43228/