You use KEY$ to detect keys. @LOOP IF KEY$=="A" THEN PRINT"You pressed A!" GOTO @LOOP