perseveration

noun
  1. the tendency to continue or repeat a particular response, behavior, or mental process beyond what is appropriate or necessary
  2. Usage: psychology; medical

Examples