keys.cpp and cvar.cpp done

Among other functions, these two files are filled out.