WindowWidth = 536 : WindowHeight = 446
UpperLeftX = INT((DisplayWidth-WindowWidth)/2)
UpperLeftY = INT((DisplayHeight-WindowHeight)/2)
graphicbox #main.graphicbox1, 205, 45, 115, 65
Open "Window Title" for Window as #main
#main "trapclose [quit]"
#main "font ms_sans_serif 10"
#main.graphicbox1 "setfocus"
#main.graphicbox1 "when characterInput [go]" ' Wait for a keyboard entry.
wait
[go]
Char$= Inkey$
if Char$=chr$(9) then ' Tab
print "Tab"
Else
if (len(Char$)=2) AND (asc(right$(Char$,1))=7) then ' Shift + Tab
print "Shift + Tab"
end if
end if
Wait
[quit]
close #main : END
WindowWidth = 536 : WindowHeight = 446
UpperLeftX = INT((DisplayWidth-WindowWidth)/2)
UpperLeftY = INT((DisplayHeight-WindowHeight)/2)
graphicbox #main.graphicbox1, 205, 45, 115, 65
open "Window Title" for Window as #main
#main "trapclose [quit]"
#main "font ms_sans_serif 10"
#main.graphicbox1 "setfocus"
#main.graphicbox1 "when characterInput [go]" ' Wait for a keyboard entry.
wait
[go]
select case Inkey$
case chr$(0) + chr$(9): print "Tab"
case chr$(4) + chr$(9): print "Shift + Tab" ' LBB (correct)
case chr$(4) + chr$(7): print "Shift + Tab" ' LB4 (incorrect)
end select
wait
[quit]
close #main
end