Update cava.c

fixed a bug where default input method was undifened.