Revert "Add cancel event flag in Key up event"