title: Let an image appear with key stroke and stay [pygame]
body: <p>I'm currently working on a school project and I'm stuck with this problem.
  The problem is in this line of code:</p>
  
  <pre><code>   if pressed[pygame.K_SPACE]: 
         a = 1
     while a == 1:
         gameDisplay.blit(bulletIMG, (x,y))
  </code></pre>
  
  <p>I know what that problem is, the loop will go on forever.
  Is there a way to break out of this loop? or should I try a different approach.</p>