Recongising IR Codes from an IR Remote Control

Have you considered the IRremote library?. It works well for me.