Fixed faulty modifier key behavior on the Mac