Good start. A few more lines are needed though.
`deleted the wait key - it wasn't needed.
make object cube 1,1 `removed the extra "cube" from this line.
do `added a do/loop group to run the following code over and over
if downkey()=1
move object down 1,2
endif `added the end if. This was causing the error you got.
if upkey()=1
move object up 1,2
end if
loop ` closed the the do/loop group
It will work now, but it will go very fast. You can position the object further away from the camera, move it less, or take a look at sync and set it to Sync rate 60 (or so).
Every group (if/endif, do/loop, for/next, etc.) needs to be opened and closed. Groups can be embedded in other groups, but they cannot cross groups - like this:
`Will not work
For i = 1 to 20
do
Next i
loop
`will work
do
for i = 1 to 20
next i
loop
"Droids don't rip your arms off when they lose." -H. Solo
REALITY II