Trigger onKeyReleased only after the key has been released
Merge pull request #4068 from michaelcontento/trigger-onKeyPressed-while-down

Trigger onKeyReleased only after the key has been released[ci skip]