Okay, i am using Python3 with an Ubuntu Linux OS.  

I have a very simple bot which moves when i press a arrow key. My problem is that when I read in the pygame event list it contains 328 elements of the same key pressing down. Therefore I am not able to change direction with my bot because I get the signal not once I get it 328 times. Is there any solution for the problem.
My code looks like this:

```
for event in pygame.event.get():
    if event.type == pygame.QUIT:
        pygame.quit()

    keys = pygame.key.get_pressed()
    for key in keys:
        if keys[pygame.K_LEFT]:
            self.map.move(self.map.x1 - 1, self.map.y1 + 0)

        elif keys[pygame.K_RIGHT]:
            self.map.move(self.map.x1 + 1, self.map.y1 + 0)

        elif keys[pygame.K_UP]:
            self.map.move(self.map.x1 + 0, self.map.y1 + 1)

        elif keys[pygame.K_DOWN]:
            self.map.move(self.map.x1 + 0, self.map.y1 - 1)

```

The x1 and y1 are the coordinates of my robot.