fix bug that keyup event propagated while press enter