I can think of 2 ways, lets say your sprite id is 10 and image is 5:
1. first make the point of rotation in the centre of the sprite:
dbOffsetSprite(10,dbSpriteWidth(10)/2,dbSpriteHeight(10)/2);
Use the dbMoveSprite() function, in your loop you will have to say something like:
if (dbRightKey()==1) {dbRotateSprite(10, 90); dbMoveSprite(10,1);}
if (dbLeftKey()==1) {dbRotateSprite(10, 270); dbMoveSprite(10,1);}
if (dbUpKey()==1) {dbRotateSprite(10, 0); dbMoveSprite(10,1);}
if (dbDownKey()==1) {dbRotateSprite(10, 180); dbMoveSprite(10,1);}
2. You could use an int value, this does not rotate the sprite:
int MoveX;
in the loop:
if (dbLeftKey() == 1) MoveX--;
if (dbRightKey() == 1) MoveX++;
if (dbSpriteX(10) != MoveX) dbSprite(10,MoveX,dbSpriteY(10),5);