Corrected OSX keyboard modifier detection