fix keyup issues