Can someone show me how to add a (onkeypress with the onPress) to this code? please
pad1.onPress = function() {
kirupaSound = new Sound(this._parent);
kirupaSound.attachSound(“pad1”);
kirupaSound.start(0, 99);
};
pad1.onRelease = function() {
kirupaSound.stop();