@Override
	public void keyPressed(KeyEvent ke) {
		int code = ke.getKeyCode();
		
		if(code == KeyEvent.VK_LEFT){
			world.nextpacdir = world.LEFT;
		}else if (code == KeyEvent.VK_RIGHT){
			world.nextpacdir = world.RIGHT;
		}else if(code == KeyEvent.VK_UP){
			world.nextpacdir = world.UP;
		}else if(code == KeyEvent.VK_DOWN){
			world.nextpacdir = world.DOWN;
		}
	}