Added delay and key press