fix keypress delay