To simulate your application replace the images and sounds.
You may need states to prototype your applications!
In the JavaScript function p1 for an example is given.
* If you press "1" after you have pressed "2" you get a buzzing sound.
* If you press a different key before there is no sound.