you can use KEYSTATE().
`MAINMENU
Set Display mode 1024,768,16
hide mouse
Sync on
selectedItem=1
do
set text size 35
red=RGB(241,25,30)
white=RGB(255,255,255)
`print menu options on the mainmenu.png(options are "play","help","exit")
`the selected option is red,oters:white
if selectedItem=1 then ink red,0 else ink white,0
text 200,440,"Play"
if selectedItem=2 then ink red,0 else ink white,0
text 200,480,"Help"
if selectedItem=3 then ink red,0 else ink white,0
text 200,520,"Exit"
`select menu options
if KEYSTATE(200)=1 and hold=0 then inc selectedItem:hold=1
if KEYSTATE(208)=1 and hold=0 then dec selectedItem:hold=1
if KEYSTATE(200)=0 and KEYSTATE(208)=0 then hold=0
if selectedItem>3 then selectedItem=1
if selectedItem<1 then selectedItem=3
sync
loop
this is SCANCODE