Digital inputs 0 and 1 are the RX/TX pins, recommended not to use these.
It appears this keypad is not a matrix type, you will have to write the code to scan the pins for a low.
You will need to turn on pull-ups.
The above assumes this a simple 12 switch connection with one side of each switch connected to com.
.