As it is, not possible.
By modifying the keyboard and using scaled resistances on each pin (button), and using the ADC input of the mcu to detect what is pressed depending on the voltage drop, its possible.
- use i2C io expander with interrupt (saves scaning job if no key press due to interrupt output pin) PCF8574 or similar - 4 ports to input 4 ports to output . look at the link **broken link removed**
- or 4 74hc165s in spi alike mode only miso and scl
(could be variations with )
- or 3 wire 74hc595 for output and 74hc165 for input
(miso mosi and scl)
May be it is already implemented Look around for i2c keypad handler chip where keypad scan and debouncing is already implemented . Maybe you will be lucky to find one .
I think Philips has AN434 that describe how to connect AT keyboard to a MCU via I2C protocol. Hope it helps.
Added after 3 minutes:
By the way, what is the dot matrix keypad? Do you mean matrix keypad with columns and rows? Sorry, if I'm wrong but this is the first time I heard of dot matrix keypad.
You can use 2 pcf8574 which are i2c I/O expander;
-one configured with all 8 lines as inputs and second with all outputs, as they form together 8*8 dot matrix; you can use, of course, just 4*4 of them.
is possibble but you have to use one input to a ADC converter and the keyboard has to have combinations of differents resistors so they are basically voltage dividers and mesured ..after by comparaison to a table is easy to see what key was depresed..
There is another way without an ADC. It uses PWM from a 555. It all depands what you want to achive. **broken link removed**
They say that you can connect upto 500 keys!