MacBook Misidentifies Physical Layout of Built-in Keyboard
Solution 1:
You machine is mistaking the Keyboard Type. See if this helps:
http://m10lmac.blogspot.com/2009/12/fixing-keyboard-type-problems.html
If nothing else works, try this Karabiner fix:
Change Mac Keyboard Identifier after keyboard replacement