I found this years ago, bookmarked it and just now found it again.
I figured someone might like this.
using System.Media; // for SystemSounds
//SystemSounds.Beep.Play(); stick this anywhere
// Play a beep when you press a key
if (Input.GetKeyUp(KeyCode.F1))
{
SystemSounds.Beep.Play();
// do some game stuff here
return;
}
Other sounds:
SystemSounds.Question.Play();
SystemSounds.Hand.Play();
SystemSounds.Asterisk.Play();
SystemSounds.Exclamation.Play();