Added delay if event type is keyup