How can a move a sprite using the keyboard with pygame,livewires? : Hello: I have tried multiple different ways to make this work.  I am making a remake of a video game to learn pygame and livewires.  I am using livewires because it seems to be a good way to have the background graphics loaded with a sprite.  
I am trying to have a pre-loaded sprite move horizontally, while staying mobile on the correct location (in this case it is 50 pixels up).  I can get the sprite move using pygame or I can have the background with the sprite loaded in the right position or I can have the sprite move, but both seems to not occur at the same time. For added bonus, I am also going to need the screen to scroll right when the character moves a different position.  Here is my code:
 
import pygame, sys
from livewires import games
from pygame.locals import *

games.init(screen_width = 640, screen_height = 480, fps = 50) #setup up the window siz

    

class Mario(games.Sprite):

    def update(self, pressed_keys):
        move = 50 #Setup the origianl position of the character
        if pressed_keys[K_RIGHT]: move += 1 #press right key to move forward
        if pressed_keys[K_LEFT]: move -= 1 #press left key to move back
            
                   
                   
    
                
        
    def main():
        pygame.init()
        screen_image = games.load_image("World 1-1.bmp", transparent = False) #setup the background image
        games.screen.background = screen_image
        mario_image = games.load_image("Mario3.bmp")
        mario = games.Sprite(image = mario_image, x = move, y=370) #setup the position of the character
        sprites.add(mario)
        pygame.display.update()

        while True:
            for event in pygame.event.get():
                if event.type == QUIT: return pygame.quit() #if the player quits

            keys_pressed = pygame.key.get_pressed()



            
           

            

        
        
    games.screen.mainloop()
        
    main()
  