XKeyEvent handling for NSEvent translation work