Don't add Mac key bindings on other platforms.

This fixes #9647.

cc @redmunds