From my experience unless it's an exact fit and the cable is coming out at the exact location and such, it does not work.
Many use an USB KEYBOARD when they can't get parts.
I am currently using HP Probook 4510s laptop. THe keypad has some issues and some keys wont work. When I look for replacing this, I dont get a replacement for this in India. Can i use the Keypad used for PAVILION DV9303TX model for HP Probook 4510s...? Kindly let me know. Any of your advise in this regard will be of great help to me.