Here's an update in case someone happens across this thread on a search.
This is what is observed (on Mac nw.js) alltogether:
C2's Keyboard.LastKeyCode is incorrect for numpad keys
browser.execjs("event.code") is correct for numpad keys
browser.execjs("event.keyCode") is incorrect for numpad keys.
Example: LastKey2.zip
Therefore, it seems that a workaround to properly detect numkeys on Mac nw.js is to leverage event.code from JavaScript and manually derive a keycode from that.
Lastly, I can also reproduce this on Mac outside of nw.js using the latest version of Chrome (62.0.3202.75)