fixed NativeKeyListener on MacOS resolved #2