Connect the columns with the anodes of the diodes to input pins of the Arduino, and enable the internal pull-up resistors.
Connect the rows with the cathodes of the diodes to output pins of the Arduino. Leave all but one on input mode, and switch the single output row to Lo-Z low.
Please don't reopen such old threads, start a new one.
Pieter