public function key()
    {
        if ($this->getWalkFlag() & self::WALK_X) {
            return $this->keyX();
        } elseif ($this->getWalkFlag() & self::WALK_Y) {
            return $this->keyY();
        } else {
            return $this->keyXY();
        }
    }