Help with Playing audio when key is pressed

I have been trying to make a script that plays a sound when space key is pressed but it wont work. I need help
this is what i have:
CannonMove.prototype.update = function(dt) {

if ( this.app.keyboard.isPressed(pc.KEY_SPACE)){
this.entity.sound.play(‘Sound’);

} else{
this.entity.sound.stop(‘Sound’);
}
};