public void keyReleased(KeyEvent e)
      {
         if(e.getKeyCode() == KeyEvent.VK_UP)
         {keys[0]=false;}
         
         if(e.getKeyCode() == KeyEvent.VK_RIGHT)
         {keys[1]=false;}
                   
         if(e.getKeyCode() == KeyEvent.VK_DOWN)
         {keys[2]=false;}
         
         if(e.getKeyCode() == KeyEvent.VK_LEFT)
         {keys[3]=false;}
      	
         if(e.getKeyCode() == KeyEvent.VK_SPACE)
         {keys[4]=false;} 
      }