fixed keydown stuff