title: SDL2 does not generate KEYDOWN and KEYUP events for accent key
body: <p>I want to use the keys as a game control not to write text.</p>
  <p>I have tried <code>SDL_StopTextInput();</code> but this only disables the <code>SDL_TEXTINPUT</code> event and does not create <code>SDL_KEYDOWN</code> and <code>SDL_KEYUP</code> events</p>
  <pre><code>#include &lt;GL/glew.h&gt;
  #include &lt;SDL2/SDL.h&gt;
  #include &lt;iostream&gt;
  
  #define ANCHO 800
  #define ALTO 600
  
  int main (int n, char **argumentos)
  {
      SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
      SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
      SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, &quot;0&quot;);//No suspende el compositor de ventana (No funciona en devuan mate)
      //error: ‘SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR’ was not declared in this scope (devuan mate)
      SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, &quot;0&quot;);
      SDL_SetHint(SDL_HINT_IME_INTERNAL_EDITING, &quot;1&quot;);
      SDL_Window *ventana = SDL_CreateWindow(&quot;Ejemplo&quot;, 0, 0, ANCHO, ALTO, SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE);
      SDL_GLContext contexto = SDL_GL_CreateContext(ventana);
      SDL_GL_SetSwapInterval(1);//Limita a 60 fps
  
      glewExperimental = GL_TRUE;
  
      glEnable (GL_CULL_FACE);
      glViewport(0, 0, ANCHO, ALTO);
      glClearColor(0.95, 0.95, 0.95, 1.0);
      //glActiveTexture(GL_TEXTURE0);
      glEnable(GL_BLEND);
      glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
  
      SDL_StopTextInput();
      bool terminar = false;
      while (!terminar)
      {
          SDL_Event evento;
          while (SDL_PollEvent(&amp;evento))
          {
              if(evento.type == SDL_TEXTEDITING)
                  std::cout &lt;&lt; &quot;SDL_TEXTEDITING&quot; &lt;&lt; &quot;\n&quot;;
              else if(evento.type == SDL_TEXTINPUT)
                  std::cout &lt;&lt; &quot;SDL_TEXTINPUT&quot; &lt;&lt; &quot;\n&quot;;
              else if(evento.type == SDL_KEYMAPCHANGED)
                  std::cout &lt;&lt; &quot;SDL_KEYMAPCHANGED&quot; &lt;&lt; &quot;\n&quot;;
              else if(evento.type == SDL_SYSWMEVENT)
                  std::cout &lt;&lt; &quot;SDL_SYSWMEVENT&quot; &lt;&lt; &quot;\n&quot;;
              else if(evento.type == SDL_KEYDOWN)
                  std::cout &lt;&lt; &quot;SDL_KEYDOWN&quot; &lt;&lt; &quot;\n&quot;;
              else if(evento.type == SDL_KEYUP)
                  std::cout &lt;&lt; &quot;SDL_KEYUP&quot; &lt;&lt; &quot;\n&quot;;
              else if (evento.type == SDL_WINDOWEVENT)
              {
                  if (evento.window.event == SDL_WINDOWEVENT_CLOSE)
                      terminar = true;
              }
          }
  
          glClear(GL_COLOR_BUFFER_BIT);
  
          SDL_GL_SwapWindow(ventana);
      }
  
      return 0;
  }
  </code></pre>
  <p>Operating system: Gentoo 64bits</p>
  <p>Keyboard: Spanish/Spanish</p>
  <p>Neither of the 2 accents works: <code>´</code> and <code>`</code></p>