Handle keypress delay