If both build models are actually the same in this aspect, the keyboard may be interchangeable
however the keyboard section has to fit inside the shell and those key openings match; as do
the connectors for the keyboard electronics to correctly function with the rest of the unit...
As I wrote here, I also searched across a few sites online and used MacTracker.ca database
to narrow the model and build year series; to see what the compatibility should be. I found the
ones you seek to compare or share parts with, likely will not cross-reference due to years apart.
In general, a MacBook 13-inch polycarbonate unibody portable 'keyboard' can cost $65. to $160.
http://www.powerbookmedic.com/xcart1/home.php?cat=617 and up depending on condition & fit.
The trackpad is sold separately; you'd get the top case, keyboard -- and a trackpad. These are
available as 'new' or in various tested good condition levels of cosmetic appearance or condition.
So price varies along with the numbers of product in stock at the present time, & condition level.
There are compatibility numbers and other details which appear in separate links from this page:
http://www.powerbookmedic.com/MacBook-Keyboard--Top-Case-White-for-Model-A1342-p -17510.html
This company presently has two keyboard units in stock, none as old as 2007; and that build
may be too old for compatibility because the model numbers were recycled for several years
and the associated parts were changed in detail; these computers were upgraded for years.
Some of what I've found suggests the 2010 model differs somewhat from earlier A1342 builds.
You could look into iFixit.com guides for portable MacBook models to see the part number and
other information on replacement of these items. Some instruction info may carry across different
model numbers; but maybe not. This instruction is for the same series MacBook 13-in A1342:
https://www.ifixit.com/Device/MacBook_Unibody_Model_A1342 ... see 2 - teardowns on this page.
There are different Sales model numbers within the 'model number' so the MacBook from 2007
would be rather old and probably not actually share many case parts, its a MacBook2.1 or 3.1.
While a MacBook from 2010 had seen years of change & development, it is MacBook7.1. The
other identifiers limit what parts actually will fit. You probably will have to buy the exact correct
part for your MacBook7.1 with the correct matching part; not something from an older build series.
• MacBook (13-inch, Mid 2010)
Introduced May 2010
Discontinued July 2011
Model Identifier MacBook7,1
Model Number A1342
EMC 2395
Order Number MC516LL/A
.-.-.-.-.-.-.-.-.-.-.
• MacBook (13-inch, Mid 2007)
Introduced May 2007
Discontinued November 2007
Model Identifier MacBook2,1
Model Number A1181
EMC 2139
Order Number MB061LL/A (White), MB062LL/A (White), MB063LL/A (Black)
.-.-.-.-.-.-.-.-.-.-.
• MacBook (13-inch, Late 2007)
Introduced November 2007
Discontinued February 2008
Model Identifier MacBook3,1
Model Number A1181
EMC 2200
Order Number MB061LL/B (White), MB062LL/B (White), MB063LL/B (Black)
.-.-.-.-.-.-.-.-.-.-.
These models may share the same shape, but aren't of the same build model number.
A closer likely fit for keyboard trackpad and case parts, may be those from the Late 2009
13-inch MacBook6.1, as it is close & shares the same model number; but not same EMC
and not the same sales order numbers...
Introduced October 2009
Discontinued May 2010
Model Identifier MacBook6,1
Model Number A1342
EMC 2350
Order Number MC207LL/A
Initial Price $999
.-.-.-.-.-.-.-.-.-.-.
Authorized repair and service providers should have the correct part numbers to fix exactly
and some may be able to sell you those parts; some in good/used condition, for a lower price
or new ones as available at the higher price point. powerbookmedic, wegenermedia and other
service companies who offer parts and service, online, are fair bets. Other local shops may
have to order the part and add shipping to their cost as part of a guaranteed repair option.
Good luck in this matter...! 😐