I don't know about dementia, but I do some of those things. I'm in my 20s.
It's a real pain throwing the cheese into the trash instead of the wrapper, as I've done so many times before.
To keep focused, I gently rub my thumb and index finger together for a few seconds.