I can't answer all your questions. But the place to start would be looking up "inkey" in the manual.