How to keep motor on after clicking button on IR Remote

Hi, I'm still fairly new to programming, so sorry if its a dumb question. I have a motor hooked up to a L298n, and i want to be able to press a button and have it turn on and stay on until I hit another button to turn it off. I am only using the 0xFF629D code to turn on the motor. Also, right now when I press any button on my IR remote the motor spins for about 1/4 second and then stops. I have my code below, if anyone can please help me out, that would be much appreciated. Thanks!

#include <IRremote.h>

int RECV_PIN = 11;
#define enA 10
#define in1 12
#define in2 13

int rotDirection = 0;

IRrecv irrecv(RECV_PIN);

decode_results results;

void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
irrecv.blink13(true);
pinMode(8, OUTPUT);
pinMode(5, OUTPUT);
pinMode(enA, OUTPUT);
pinMode(in1, OUTPUT);
pinMode(in2, OUTPUT);
}

void loop() {
analogWrite(enA, 200);
if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value
}
delay(100);
if (results.value==0xFF02FD){
digitalWrite(8, HIGH);
}
if (results.value==0xFF629D) {
digitalWrite(in2, HIGH);
}
if (results.value==0xFFE21D){
digitalWrite(8, LOW);
digitalWrite(in1, LOW);
digitalWrite(in2, LOW);
}
if (results.value==0xFFC23D){
digitalWrite(8, LOW);
digitalWrite(in1, LOW);
digitalWrite(in2, LOW);
}
}