add cmd key support for mac