You might find this more useful
INDENT YOUR CODE!!!!!!!! it makes it more readable
I've just did a small amount of code which lets you control a box by using the arrow keys, hope it helps.
`*****************************
`*Created by Sephi *
`*Date: 30th November 2005 *
`*Title: Motion example *
`*****************************
`Refresh Rate
Sync rate 60 : Sync on
`Position camera
Position camera 0,0,0
`Make a Box for the player to move
make object cube 1,10
`Set variables
X = 0
Y = 0
Speed = 3
Do
`Update box position
Position object 1,X,Y,200
`Controls for box
If upkey()=1 then Y = Y + Speed
If downkey()=1 then Y = Y - Speed
If leftkey()=1 then X = X - Speed
If rightkey()=1 then X = X + Speed
`You can also set a key to increase/decrease the speed
If inkey$()="-" or inkey$()="-" then Speed = Speed - 1
If inkey$()="+" OR inkey$()="=" then Speed = Speed + 1
`Shows Position and speed of cube
Set cursor 25,25
Print "Speed: "; Speed
Set cursor 25,50
Print "X Position: "; X
Set cursor 25,75
Print "Y Position: "; Y
`Refresh Screen
sync
Loop
Now doesn't that code look more tidy?
P.S. don't forget, indenting code was created for a reason
, it doesn't just help you read your code, it helps others to help you.... *sigh*