motor controll holding ir remote button

hello. im controlling some small dc motors using arduino uno and tle94112el shield. currently, i can independently controll motors by pressing remote’s buttons, but i wanna keep one motor rotating by holding a button. for example, by holding “unu” button, i wanna power the motor with 50% duty cycle, as i currently do by just pressing “unu”.
any solutions please?
thank you!

here is the code im using now:

#include <TLE94112.h>
#include <Tle94112Motor.h>
#include <IRremote.h>

#define unu 0x1
#define patru 0x4
#define sapte 0x7

int RECV_PIN = 2;

// Tle94112 Object
Tle94112 controller = Tle94112();

// Tle94112Motor Objects
Tle94112Motor motor1(controller);
Tle94112Motor motor2(controller);
Tle94112Motor motor3(controller);

IRrecv irrecv(RECV_PIN);

decode_results results;

void setup()
// Enable MotorController Tle94112
// Note: Required to be done before starting to configure the motor


// Connect motor1 to HB1 and HB3
motor1.connect(motor1.HIGHSIDE, controller.TLE_HB1);
motor1.connect(motor1.LOWSIDE, controller.TLE_HB2);

// Drive HB1 with signal from PWM1
// Note: This allows to control the speed of the motor

motor1.setPwm(motor1.HIGHSIDE, controller.TLE_PWM2);

// Set PWM Frequency, default is 80 Hz
motor1.setPwmFreq(motor1.HIGHSIDE, controller.TLE_FREQ200HZ);


void loop()
if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value

if (results.value == unu)

if (results.value == patru)

if (results.value == sapte)