public void keyPressed(int key) {
        if(key == Input.KEY_UP) {
            this.setCurOption(curOption - 1);
            if(curOption < 0) this.setCurOption(options.get(curPage).length - 1);
        } else if(key == Input.KEY_DOWN) {
            this.setCurOption(curOption + 1);
            if(curOption == options.get(curPage).length) this.setCurOption(0);
        }
    }