I decided to experiment again after one and a half year and this is what I've done:
http://mike.thedt.net/temp/MOV01540.3GP (sorry for the quality)
It's something simple but, this time, instead checking if a button is pressed, I've used interrupts to do it which means that the processor can do other things than constantly checking wether a button is pressed or not