I have very similar keypads at home. 4 pins are connected to the rows and other 4 pins are connected to columns, when you press the button the column and row pins corresponding to button get shorted.
If you have multimeter use continuity function to find out - press one button and see which pins are shorted. After a few buttons you'll work out which pins correspond to columns/rows.