OK, Im coming with some news.
Finally after a lot of tests I have working all butons for long press (repeat 0xffffff)
Im using flag from IR Remote:
(IrReceiver.decodedIRData.flags == IRDATA_FLAGS_IS_REPEAT)
but with this flag there was also problem with ok and playpause button - they was only in one state (I have tested function if repeat turn on led, if not just press turn off).
After adding delay 50ms before resume IR receiver it works good.
But still I have problem how to detec if it was short press or long press.
Maybe function if code wasnt changed between 200ms make it for short press if its changed and flag is repeat then make function for long press.
its easy to tell about, but its harder for me to make it works in arduino (programing
)
maybe somone can help?
also I have problem with RC5 buttons, from one press I get in same time 2 codes.I cant add delay about 150-200ms because I have connected 7seg LCD which will unusable with this delay:
16:06:44.527 -> uint16_t address = 0x0;
16:06:44.527 -> uint16_t command = 0xC;
16:06:44.527 -> uint32_t rawData = 0x180C;
16:06:44.651 -> uint16_t address = 0x0;
16:06:44.651 -> uint16_t command = 0xC;
16:06:44.651 -> uint32_t rawData = 0x180C;
its from IR Remote dump, from ONE SINGLE CLICK, as you can see about 100-200ms and here it is second code from one click.
I have problem like this > single press "right" (input++ by 1), again single press "right" (input++ by 1) , then single press on "left" , it should decrease input by 1, but it still goes like it was pressed "right" button and its going input++, second press of "left" is going finally down with decreasing input by 1.
I think that arduino is storing value, which he dont make in one loop, then next press is making last code. so its still problem that Im recording 2 same codes at same time.
I dont know how to block IR or make in software some lock to make one time one function. If I got 2 codes, just make one of them, second go to hell 
In NEC/Apple there is no problem. But when I got in RC5 power button, one click sends 2 codes I will never turn off something 
Now code for long press looks:
if (IrReceiver.decodedIRData.flags == IRDATA_FLAGS_IS_REPEAT) {
currentButtonCode = lastButtonCode;
blokadaPilot = 0; //lock
LiczDlugie = LiczDlugie + 1; //Im counting how many times it was repeated
if(LiczDlugie>5)LiczDlugie = 0; //If higher than 5, reset and go to 0
} else {
lastButtonCode = currentButtonCode;
blokadaPilot = 1; //lock
}
if (currentButtonCode == AppleSrodek && blokadaPilot == 0 && LiczDlugie == 2) {
enc_change = 1;
enc = 40;
}
but now I need to add for same button new function, but for short press.
maybe something like this (for ok button):
if ((currentMillis - previousMillis > interval) && IrReceiver.decodedIRData.decodedRawData == AppleSrodek && currentButtonCode == AppleSrodek )
{
//short press//
}
else {
// long press//
}
or else if (IrReceiver.decodedIRData.flags == IRDATA_FLAGS_IS_REPEAT)
{
//long press//
}
currentButtonCode = saved last press
IrReceiver.decodedIRData.decodedRawData - new code (if received)
so in this variant should work