Use remote controller as keyboard matrix Arduino

I need to connect remote contoller directly to arduino without using IR channel, so just like a plain matrix keyboard.
I guess that it is possible just connect remote lines and row to arduino directly and than use it like plain keyboard.
But each remote controller has decoder it decodes keyboard code and send it via IR diode.
So maybe it is better to use this signal and decode it in arduino ? If it is possible.
Maybe there are some examples of decoding IR signal, or if controller has pins for digital output for decoded codes, but my remote contoller decoder doesn't have, only for IR.
Please suggest what is the best way to do in this case.