while(!key[KEY_ESC])
//If the user hits escape, quit the program
{

if(key[KEY_RIGHT])
// If the user hits the right key, change the picture's X coordinate
{
my_pic_x ++;
// Moving right so up the X coordinate by 1
}
if(key[KEY_LEFT])
{
my_pic_x --;
}
if(key[KEY_UP]) //here is the problem
{


for( int w=0;w<50;w--)
{



putpixel(buffer,my_pic_x+10,my_pic_y+10,0);
putpixel(buffer,my_pic_x+10,my_pic_y--,50);

showBuffer ();


} }

if(key[KEY_DOWN])// Ditto' - only for down
{
my_pic_y ++;// Moving down, so
}
/*

my problem is this, when the user hits key UP there is suposed
to be a blue beam coming from the "ship"
that also happens BUT just once and then the program hookes up
*/