When i use wait.keys in a block,it needs to press the keyboard twice to move on

Please follow this guideline:

Also please try to write a full question rather than just paste in a section of code. Don’t assume that what you can squeeze in the title of your post will be enough to tell people the relevant context and issue. Help us to help you.