const EventTypeSpec keyInputEvents[] = {
{ kEventClassTextInput, kEventTextInputUnicodeForKeyEvent },
{ kEventClassWindow, kEventWindowFocusAcquired },
{ kEventClassWindow, kEventWindowFocusRelinquish },
{ kEventClassWindow, kEventTextInputUpdateActiveInputArea},
{ kEventClassKeyboard, kEventRawKeyDown},
{ kEventClassKeyboard, kEventRawKeyUp},
{ kEventClassKeyboard, kEventRawKeyRepeat}
};
InstallWindowEventHandler (Parentwindow, carbonEventHandler, GetEventTypeCount (keyInputEvents), keyInputEvents, this, &m_KeyboardEventHandler);