with a bit of help

finger on the escape button, it stops? I need the UI to remain as is, until the user presses a button
the app expects.
REM Get screen width and height:
SYS "GetSystemMetrics", 0 TO screenW: SYS "GetSystemMetrics", 1 TO screenH
REM user defined mode:
nCols = 48: nRows = 24: nColors = 16: charSet = 0 REM ANSI
charW = screenW DIV nCols : charH = screenH DIV nRows
VDU 23, 22, screenW; screenH; charW, charH, nColors, charSet
REM Set full screen window (code from BB4W Help manual):
GWL_STYLE = -16
HWND_TOPMOST = -1
WS_VISIBLE = &10000000
WS_CLIPCHILDREN = &2000000
WS_CLIPSIBLINGS = &4000000
SYS "SetWindowLong", @hwnd%, GWL_STYLE, WS_VISIBLE + WS_CLIPCHILDREN + WS_CLIPSIBLINGS
SYS "SetWindowPos", @hwnd%, HWND_TOPMOST, 0, 0, screenW, screenH, 0
VDU 26
REM text color:
fColor = 2 : bColor = 0: REM green on black
COLOUR fColor: COLOUR bColor + 128
CLS
FOR row = 0 TO nRows - 1
PRINT TAB(0, row); STR$(row); : WAIT 4
NEXT row
WAIT 100
FOR col = 0 TO nCols - 1
PRINT TAB(col, 0); RIGHT$(STR$(col), 1); : WAIT 2
NEXT col
WAIT 100
PRINT TAB(nCols DIV 2 - 20, nRows DIV 2) "Alt+F4 to quit

REPEAT WAIT 10 : UNTIL FALSE