getLastKey() {
        if (this.__stack.length === 0) {
            return null;
        }
        return this.__stack[this.__stack.length - 1];
    }
Get the last key
@returns {K|null} The last key, or null if the array is empty