fixed keydown listener