Fix a key release event handling.