Tutorial for Keypad and LCD to Arduino MEGA

I can connect the key pad with arduino and i can connect the lcd with arduino separately but i cant seem to merge the link between the keypad and lcd together ,as my program required me to set some settings by pressing buttons on the keypad and making the value appear on the lcd .