IR Remote Help

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.

You are using the word code to mean two different things. Show your code (as in Arduino sketch) and any serial output that shows the code (as in IR value) that is generated from two different buttons, including one being held down.

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