Moving the ball according to keypress

Moving the ball according to keypress obtained in main file