keypress fix