
' ---------------------------------------------------------------
'  By default the instruction "Key" and the function "Key()"
'   are active only if this application is focused (selected)
' ---------------------------------------------------------------

' This instruction enables keys also when the app is not focused
Option GlobalKeys Enabled

' This instruction disables keys when the app is not focused
'Option GlobalKeys Disabled


Key A Goto Test
Key S Goto Stop

Label Stop
Stop

Label Test
	If Key("B")
		Beep
	EndIf
Goto Test


'EXEC Gosub 3
