1. Clean keypad doomshit first, replace doomshit if needed.
2. If not solved, check flexible cable, replace flexible cable if needed.
3. If still not solved, please trace and check keypad circuit.
Let's share nokia schematic, here is collection nokia schematic from some source.