KeypadHandler is a project mainly written in ..., it's free.
iPhone Keypad Handler for Both Orientation