Typing spaces with Eggplant can be done with the space keyword.
TypeText space
…or
TypeText " "
Similarly, space bar combinations can be typed with:
TypeText controlDown, " ", controlUp
…or
TypeText "\c", " ", "\C"
Just don’t forget to release any keys that you have depressed.