Add workaround for JIS Kana & Eisu keys.

GdkQuartz (gtk+-3.8.2) translates these keys to GDK_space
unexpectedly. Although we should fix it at GdkQuartz layer, we
also handle these keys at immodule layer to work with old version
of GTK+.