Stop auto-dimming automatically I've noticed my Mac didn't retain the brightness I set with the keys.

How do you stop it from auto-dimming?
Perhaps you have "Automatically adjust brightness" turned on in the Display preference panel?