I also wasted some time getting the keyspan IR receiver to recognize Apple Remote codes, until I realized that the problems were caused by noise in the receiver. Moving the receiver from a USB hub to a USB port on my g5 reduced the error rate to acceptable limits. Even so, errors occur frequently at the end of the code sequence for each key, and do occur (less frequently, with 2-3% rate) at the beginning. Fortunately the beginning and end of each codeword appears to be padding that does not really distinguish the codes for different keys. Removing this padding produces a reliably working REM file. I am attaching it to this post, and also inlining it below.
I would appreciate if someone could point me to a matching .map file, since I haven't figured that out yet, and I can't seem to find the files that were uploaded to this site.
FRQ 38000
BIT 342
CMD MENU 0202 0205 0205 0205 0202 0205 0205 0205 0205 0205 0205 0202 0202 0202 0202 0205 0202 0205 0202 0202 0202 0202 0202 0202 0205 0205 0205 0205 0202 0202 0205 0205
CMD PLAY 0202 0205 0205 0205 0202 0205 0205 0205 0205 0205 0205 0202 0202 0202 0202 0205 0202 0202 0205 0202 0202 0202 0202 0202 0205 0205 0205 0205 0202 0202 0205 0205
CMD RIGHT 0202 0205 0205 0205 0202 0205 0205 0205 0205 0205 0205 0202 0202 0202 0202 0205 0205 0205 0205 0202 0202 0202 0202 0202 0205 0205 0205 0205 0202 0202 0205 0205
CMD LEFT 0202 0205 0205 0205 0202 0205 0205 0205 0205 0205 0205 0202 0202 0202 0202 0205 0202 0202 0202 0205 0202 0202 0202 0202 0205 0205 0205 0205 0202 0202 0205 0205
CMD UP 0202 0205 0205 0205 0202 0205 0205 0205 0205 0205 0205 0202 0202 0202 0202 0205 0205 0205 0202 0205 0202 0202 0202 0202 0205 0205 0205 0205 0202 0202 0205 0205
CMD DOWN 0202 0205 0205 0205 0202 0205 0205 0205 0205 0205 0205 0202 0202 0202 0202 0205 0205 0202 0205 0205 0202 0202 0202 0202 0205 0205 0205 0205 0202 0202 0205 0205