No, it did work.
I tried all possible combinations with keyboard, sleep, chrsaw, etc. before posting the question.
>Hi, Yuri.
>
>>Looks like this always works in revert order:
>>
>>
>>KEYBOARD "hello"
>>WAIT WINDOW "hello"
>>
>>
>>What should be done to delay the second line execution until keyboard is completed?
>
>Try the KEYBOARD clauses plain and clear. Any combination can eventually do it.
>
>Hope this helps,