LightSwitch {
   eventIn      SFBool     set_state
   field        SFBool     state FALSE
   eventOut     SFBool     state_changed
   field        SFBool     noloop FALSE
   exposedField SFTime     animTime 1
   exposedField MFFloat    colorKey [ 0.0, 0.5,  1.0 ]
   exposedField MFColor    colorKeyValue [
   	1.0 0.0 0.0, 0.5 0.5 0.5, 0.0 1.0 0.0 ]
   eventOut     SFTime     touchTime
   exposedField SFNode     button Extrusion {
   			creaseAngle 0.5
   			crossSection [
   				-0.0144165 0.00376564,
   				-0.0128567 0.0075313,
   				-0.0106066 0.0106066,
   				-0.0075313 0.0128567,
   				-0.00376564 0.0144165,
   				-0.0036 0.024,
   				0.0036 0.024,
   				0.00376564 0.0144165,
   				0.0075313 0.0128567,
   				0.0106066 0.0106066,
   				0.0128567 0.0075313,
   				0.0144165 0.00376564,
   			]
   			spine [ 0 -0.005 0, 0 0.005 0 ]
   		}
   exposedField MFNode     base Shape {
   		appearance Appearance {
   			material Material { diffuseColor .5 .5 .5 }
   			}
   		geometry Box { size .05 .08 .015 }
   		}
}

Example