SergOz, if I understand you correctly you don't need to check for "q" press. What you need to do is to perform a check for "Quick Battle Flag and or Autocombat" in every trigger you use and then exit the function.
(This post was last modified: 31.03.2020 14:54 by PerryR.)