Two external keyboards of the same type have different mappings
I'm not familiar with what you are trying, but I've had success with Karabiner for device-specific remaps, it's a little complicated to use but they have a manual on their site