Combination input buttons... Please help!!

Thanks for those links ieee488

Unfortunatly I am going to be fitting the hardware into a pre-existing machine. so i need to use the buttons that are already there! If theres a way to treat those buttons as if they are a keypad that would be grand as there seems to be a lot of reading materials about using keypads online!

Thanks
Will