fixed keydown and keyup