Created control.cpp, quit key doesn't work