The 3 keys to creativity is actually very simple:
Educate: fill your brain with a lot of other people's ideas
Stimulate: add some stimulation to your brain, could be endorphins, stimulants, or just different environments
Delimitate: add some limits to your thinking, like remove material, limit tech level and so on.
Let the mind sit and percolate, and you may get an invention.