Using iPhone currently so not in a position to draw a schematic.
At the basic level, all you need is between your 14M2 and the MCP23017 is:
I2c clock pins connected
I2c data pins connected
If you are going to use interrupts, for example to detect when a keypad press has occurred, then also connect from the MCP23017 interrupt pin to a portC pin on your 14M2.
MCP23017 pin 20 (INTA) if you want to monitor portA
MCP23017 pin 19 (INTB) if you want to monitor portB