Editing text and inserting keys into a foreign window uses the same method as editing text in the GTKeyboard window. The only difference is that you must make use of the window ``redirection'' feature in order to tell GTKeyboard which foreign window you want to use. To that end, you must choose a redirection mode, either explicit or implicit.