Topic This error occurs if a statement (for example: GETKEY statement) is used in direct mode. While most statements work in both direct mode and program mode, some of them must be inside a program.
Example GETKEY A$ issuing the command in direct mode will cause this error.