fix keyup issue