IR Remote Help

PaulS:

I got the code to work but when I press a button it gives me code. However when I hold down any button it gives me the same code.

Holding a button down should send the same value over and over, until you release the button.

... but it won't necessarily be a different code for each button. Some remotes have a "repeat that last button" code that they send repeatedly when a button is held down. They use the same repeat code for all buttons. Your sketch will have to remember what button was last pressed and use the 'repeat' code to know if the button is still being held down. Since there is no 'button up' code you will need a timer to determine if the button is no longer being pressed (it has been more than 'n' milliseconds since the last 'repeat' code arrived.)