I have this input action that executes a timer to set a attack as charged , holding this key for 1 second starts the charging and after 2 more seconds the charging is completed and sets the variable charged as true, until here its ok, but if i release the key before the charging is complete the charging will go on even if I no longer holding the key. Once i press the charging key even if not holding anymore it will continue to do the code of the key pressed part.
The problem with this is that dont mater if i finish the charging time, once I press the key the timer will trigger always setting the charged as true, and this will
cause me trouble.
How do I stop from executing the pressing part as soon i release the key?
Here is the nodes: