Fix for non-ASCII key input in GTK port