Fix bug: redundent keydown/keyup event when system app gets focus.