Stop event tick when boolean is set to true

The problem was the delay the key was pressed. I use “Was Input Key Just Released” instead of “Is Input Key Down” and it resolves my issue.