switch(event.type)
{
case SDL_QUIT:
quit = true;
break;
case SDL_KEYDOWN:
switch(event.key.keysym.sym)
{
case SDLK_KEYUP:
std::cout << "The up key was pressed!\n";
break;
}
break;
}
Just add more cases with keys and continue on. The computer does not magically know what key you want to be pressed without telling it what. It's an idiot, really.
My guess is that you have your game logic inside of the while (SDL_PollEvent(&event)) block; you should move it out of there since that block will only execute when there is input in the stream\stack. In fact the ONLY stuff that should be inside of that while loop is your input handling code.