Sample Code in which a figure responds to keypresses

Here is a sample figure just containing a set of axes, a label and
a subfigure consisting of a rose with three petals. Pressing the key "b"
causes the rose petals to rotate backwards. Pressing any other key
casues them to rotate forwards.