Interesting fact, inkey is the first function I have found requires using eq and not = on the if line. If: inkey eq "" - no syntax error Then: If: inkey = "" - syntax error However on the then line one must use = as in: If: Then: aa=inkey