Fix bug when keys are being released in a different orders that they were pressed.
When keys are being released in a different orders that they were pressed, tasks are repeated multiple times when they're activated by key sequences and/or phrases.
This happened because the check happens on key release, yet was triggered for the recorded key press (not key release).