Static images

How can I show a static image when the user presses two buttons one after the other? The image changes when other two buttons are selected.