energy we need to use g_ signal_ Connect to associate key press event, key release event, and commit signals to process the input method. g_ signal_ Connect key press event key release event commit signals to process the input method