Like David said below, you need to import WConio but then repemeber when you *import someLib* you have to use qualified names such as WConio.getkey() Example: import WConio s=WConio.getkey() if s == "right": WConio.gotoxy(10,10) WConio.putch("W") s=WConio.getch()