fix keypress