I believe that the last stages of glioblastoma usually involve increasingly severe cognitive impairment - hallucinations and such.
It all depends on what parts of the brain have been affected by the cancer. Faculties controlled by untouched parts work until the end. I lost a sibling to this horrible disease.