You should not see the keyboard unless you use INPUT. Also, don't call XSCREEN so many times! You only do it once per program in the Init section. The rest of the times, you use DISPLAY command.