Fixed Mac modifier key events (wrong use of mask).