I mean the fix would be to check a variable set by the IA I use it that way for pitch, yaw, roll controls so that I can fire reverse thrusters when the player stops pitching
Essentially the IA sets the value of the variable pitch rate
That variable is read in a function on event tick if 0 do nothing if > or less than 0 do thing and it works great for me