Fix event propagation logic

IM method events should go through the filter and reach the preedit
holder; only key press and release events need to be intercepted.