fix for keypress