Don't add Mac key bindings on other platforms.

This fixes #9647.

cc @redmunds 
If we do that some of the unit tests will fail since they're either using a fake platform or fallback to Windows on Linux platform.