IR remote Camera Slider for timelapse

Hi, I need some help on this code, not working well.
I use a Nema 17 stepper, Arduino Uno and Motorshield, Xinda remote controller and IR receiver.
The ideia is to command de slider speed and direction.

Here is the code:

/-----( Import needed libraries )-----/
#include “IRremote.h”
#include <AFMotor.h>

/-----( Declare Constants )-----/
int receiver = A2; // pin S of IR receiver to Arduino analog pin A2

/-----( Declare objects )-----/
IRrecv irrecv(receiver); // create instance of ‘irrecv’
decode_results results; // create instance of ‘decode_results’
AF_Stepper motor(20, 2); //

/-----( Declare Variables )-----/
int StepSpeed;

void setup() /----( SETUP: RUNS ONCE )----/
{
Serial.begin(9600);
Serial.println(“Camera Slider Stepper IR Receiver Button Decoder”);
irrecv.enableIRIn(); // Start the receiver
StepSpeed = 0; //set default speed
AF_Stepper motor(20, 2);

}

/–(end setup )—/

void loop() /----( LOOP: RUNS CONSTANTLY )----/
{
motor.setSpeed(StepSpeed); // speed from the IR signal
motor.step(2150, FORWARD, SINGLE);
if (irrecv.decode(&results)) // have we received an IR signal?

{
// Serial.println(results.value, HEX); UN Comment to see raw values
translateIR();
irrecv.resume(); // receive the next value
}

{

}
}/* --(end main loop )-- */

/-----( Declare User-written Functions )-----/
void translateIR() // takes action based on IR code received

// describing KEYES Remote IR codes
{
switch(results.value)
{
case 0xFF629D: Serial.print(" UP");
motor.setSpeed (+3);
motor.step(2150, FORWARD, SINGLE);
break;

case 0xFF22DD: Serial.println(" LEFT");
motor.setSpeed (100);
motor.step(2150, BACKWARD, SINGLE);
break;

case 0xFF02FD: Serial.println(" OK=Stop");
motor.setSpeed (0);
motor.step(2150, FORWARD, SINGLE);
break;

case 0xFFC23D: Serial.println(" RIGHT");
motor.setSpeed (3) ;
motor.step(2150, FORWARD, SINGLE);
break;

case 0xFFA857: Serial.print(" DOWn=");
motor.setSpeed (StepSpeed -3);
motor.step(20, FORWARD, SINGLE);
break;

case 0xFF6897: Serial.println(" 1 = vel 3rpm ");
StepSpeed = StepSpeed;
motor.step(20, FORWARD, SINGLE);
break;

case 0xFF9867: Serial.println(" 2 = vel 6rpm");
StepSpeed = StepSpeed+3;
motor.step(20, FORWARD, SINGLE);
break;

case 0xFFB04F: Serial.println(" 3 = vel 9rpm");
StepSpeed = StepSpeed+6;
motor.step(20, FORWARD, SINGLE);
break;

case 0xFF30CF: Serial.println(" 4 = vel 12rpm");
StepSpeed = StepSpeed+9;
motor.step(20, FORWARD, SINGLE);
break;

case 0xFF18E7: Serial.println(" 5 = vel 15rpm");
StepSpeed = StepSpeed+12;
motor.step(20, FORWARD, SINGLE);
break;

case 0xFF7A85: Serial.println(" Speed 300");
StepSpeed = 300;
break;

case 0xFF10EF: Serial.println(" Speed 400"); StepSpeed = 400; break;
case 0xFF38C7: Serial.println(" Speed 500"); StepSpeed = 500; break;
case 0xFF5AA5: Serial.println(" Speed 900"); StepSpeed = 900; break;
case 0xFF42BD: Serial.print(" Direction=");Serial.print(" / Speed="); Serial.println(StepSpeed); break;
case 0xFF4AB5: Serial.println(" 0"); break;
case 0xFF52AD: Serial.println(" #"); break;
case 0xFFFFFFFF: Serial.println(" REPEAT");break;

default:
Serial.println(" TRY AGAIN ");

}// End Case

} //END translateIR

/* ( THE END ) */

  {
   
}

I give up. What is that for?

Hi, I need some help on this code, not working well.

The code does something. You forgot to describe what it does.
You want the code to do something. You forgot to describe what you want it to do.
You forgot to describe what help you need.

You are right!!! So, the ideia is to control a stepper to move de camera along a slider 1meter long.
I want de code to control the speed and direction of the camera along that 1meter slider with an IR remote.
For exemple if I press the 1 button the speed will be able to run 1 meter in 10 minutes, button 2 =20 minutes etc.
Can Someone help me?