Post your test code. Read the forum guidelines to see how to properly post code.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
This simple example code will repeat the keycode as long as the button on the remote is held (at least with my remote).
#include <IRremote.h>
const byte IR_RECEIVE_PIN = 4;
void setup()
{
Serial.begin(115200);
Serial.println("IR receive test");
IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK);
}
void loop()
{
if (IrReceiver.decode())
{
unsigned long keycode = IrReceiver.decodedIRData.command;
Serial.println(keycode, HEX);
if ((IrReceiver.decodedIRData.flags & IRDATA_FLAGS_IS_REPEAT))
{
IrReceiver.resume();
return;
}
IrReceiver.resume();
}
}