add modifier support for Mac