I have a 2x6 Keypad, how will the program look if i connect it to a PIC?

Do i have to use a lot of IF THEN or is there an easyer way?