Fix KeyEvents when compiled with --disable-ibus