How to get if the plus key is pressed
<p>I'm fairly new to pygame and I was trying to get the state of the plus (+) key off of the main keyboard, not the numpad variant. The docs for pygame at <a href="http://www.pygame.org/docs/ref/key.html" rel="nofollow noreferrer">pygame.key docs</a> say to use K_PLUS but that doesn't seem to work.  </p>

<p>I wrote the following example code that should print "Pressed" when the plus key is pressed, but it has not been doing that.</p>

<pre><code>from pygame.locals import*
import pygame

def main():   
    pygame.init()
    window = pygame.display.set_mode([200, 200])
    pygame.display.set_caption('game')

    clock = pygame.time.Clock()

    while True:
        for event in pygame.event.get():                           
            if event.type == pygame.KEYDOWN:
                if pygame.key.get_pressed()[K_PLUS]:
                    print "Pressed"

        clock.tick(60)

    pygame.quit()

main()
</code></pre>

<p>Does anyone know of a working alternative?</p>