The code in that link is a bit rubbish. He initialises an array a single value at a time in the setup function. If he were any good he would have done it correctly in a few lines at the start of the program.
It looks like the code is outputting the keyboard scan rather than when it detects a press.
Now have you changed anything?
Can you show a schematic of your wiring and a photo of it?