title: If statements not outputting in SFML
body: <p>I'm trying to output a texture that I've created called "die1" based on a certain keyboard input (spacebar), here is some code I have written:</p>
  
  <pre><code>else if (sf::Keyboard::isKeyPressed(sf::Keyboard::Num2)) //Previous menu screen that just provides an option to roll
      {
          window.clear();
          window.draw(square);
          window.draw(text8); // text 8 says "Press space to roll die", (for now just testing on die value 1)
          window.display();
          cin.get();
          if (sf::Keyboard::isKeyPressed(sf::Keyboard::Space)) 
          {
              window.clear();
              window.draw(square);
              window.draw(die1); // die1 is just a texture of a value "1" side on a die
              window.display();
              cin.get();
          }
  </code></pre>
  
  <p>SFML is outputting value text8 in the first if statement, but nothing is happening when keyboard input(space), is applied for the second statement. I really appreciate any help, as I am fairly new to programming and using graphics in SFML. Thank you!</p>