And below is part of the code I used in this study. Basically what I did was ask participants to press the space bar twice, and a shape called canvas would change its size based on the number of pressing, then a painting would appear. The shape.frame and picture.curtain are only to make the task more like pulling a curtain and revealing a painting.
<shape frame>
/ color = (0,0,0)
/ size = (530, 530)
/ position = (50%,50%)
/ erase = false
</shape>
<picture curtain>
/ items = ("curtain1.bmp", "curtain2.bmp")
/ size = (500, 500)
/ position = (50%,50%)
/ erase = false
/select = values.CurtainNumber
</picture>
<shape canvas>
/ color = (255,245,225)
/ size = (values.CanvasSize, 500)
/ position = (50%,50%)
/erase = false
</shape>
********************************************************
Low Effort Trials
********************************************************
<trial LearningLE>
/stimulusframes = [1=frame,curtain, canvas]
/validresponse = (" ")
/ branch = [values.CountPress = values.CountPress + 1]
/ branch = [values.CanvasSize = values.CanvasSize + 250]
/ branch = [if (values.CountPress < 2) trial.LearningLE]
/ branch = [if (values.CountPress == 2) trial.ObjectLE]
</trial>
<picture ObjectLE>
/items = LowEffortObjects
/select = noreplace
/size = (500,500)
/position = (50%,50%)
</picture>
<trial ObjectLE>
/stimulusframes = [1=ObjectLE]
/validresponse = (noresponse)
/timeout = 2000
/ontrialend = [values.CountPress = 0]
/ontrialend = [values.CanvasSize = 0]
/ontrialend = [values.PressDuration = 0]
/branch = [trial.BlankScreen]
</trial>