public void keyTyped(KeyEvent e){            
            switch (e.getKeyCode()){
                case p1Up:      if(userLeft) {    p.get(0).moveUp();      }       break;
                case p1Down:    if(userLeft) {    p.get(0).moveDown();    }       break;   
                case p2Up:      if(userRight){    p.get(1).moveUp();      }       break;
                case p2Down:    if(userRight){    p.get(1).moveDown();    }       break;                     
            }
        }