button.clickButton element

getButton(id).click() (since PennController 1.2)

Simulates a click on the button.


newKey(" ")
newButton("continue", "Continue")

Creates a Key element associated with the spacebar which, whenever pressed, will simulate a click on the continue button added below it, then will wait until the button is clicked (or thus until the spacebar is pressed) before proceeding.