Don't add Mac key bindings on other platforms.

This fixes #9647.

cc @redmunds 
You can move this block up before the "replace Ctrl with Cmd" block to save some processing