You can quickly create a Constant node by holding the 1 key and Left Mouse Click in the graph area of the Material Editor.