Input stuck on hold after possessing pawn

Hello! I have a problem where every time I possess a pawn my inputs don’t reset. I created a system where an input needs to be pressed for a given number of seconds in order to possess a pawn. To do so I created a Macros (following this tutorial Hold Button Input! Holding button for extra events! - YouTube ) to determine if an input is being pressed or released and for how many seconds, and if the result is successful you possess the pawn. This system seems to work just fine, but my problem is that once I possess the pawn the input gets stuck on hold. I tried to use Disable Input but that only works with movement input and not for my custom inputs. Any idea of how can I solve this problem?
Thanks!!