					x_speed = 3
				elif event.key == pygame.K_UP:
					y_speed = -3
				elif event.key == pygame.K_DOWN:
					y_speed = 3
			if event.type == pygame.KEYUP:
				if event.key == pygame.K_LEFT or event.key == pygame.K_RIGHT:
					x_speed = 0