try to fix onkeydown bug