Arduino DUE + Data logging shield won't work with keypad

In the code before I am not accessing the data logger shield. Just connecting through it. So that's why I suspect it's something to do with the hardware.