   sdl input keyboard input problems
  Okay, so I have some code that is supposed to print out 'up' if you are pressing the up arrow key, 'down' if you are pressing the down arrow key. The same goes for left and right.But, no matter what I do, even though I am holding all 4 arrow keys down, a maximum of 3 messages show up instead of 4.What should look like this:    upleft  right   downMight look like this:    up right   downEven though I am holding the left arrow key.The code is here:while( running ){SDL_PumpEvents();Uint8* keystates = SDL_GetKeyState( null );SDL_FillRect( screen, null, SDL_MapRGB( screen.format, 255, 255, 255 ) );if( keystates[ SDLK_UP ] ){displayImage( 200, 100, TTF_RenderText_Solid( font, "UP",    makeColour( 255, 0, 0 ) ), screen );}if( keystates[ SDLK_DOWN ] ){displayImage( 200, 300, TTF_RenderText_Solid( font, "DOWN", makeColour( 255, 0, 0 ) ), screen );}if( keystates[ SDLK_RIGHT ] ){displayImage( 300, 200, TTF_RenderText_Solid( font, "RIGHT", makeColour( 255, 0, 0 ) ), screen );}if( keystates[ SDLK_LEFT ] ){displayImage( 100, 200, TTF_RenderText_Solid( font, "LEFT", makeColour( 255, 0, 0 ) ), screen );}if( keystates[ SDLK_ESCAPE ] ){running = false;}if( SDL_Flip( screen ) == -1 ){printf( "SDL_Flip(screen): %s", SDL_GetError() );return 1;}}Screen: 640x480, 32bpp, SDL_SWSURFACESorry for how bad the code looks.I have tried the same thing with events and not keystates, but it still didn't work.   
  It might be this problem.   