fix MacOS bug mapping modifier keys to the scancode array