It looks like you're new here. If you want to get involved, click one of these buttons!
doa$=inkey$if a$=chr$(32) thenprint "Space Bar has been pressed. Exiting program."endend ifloop
Check out the ASCII reference in yer help file for more key codes.