Okay, okay, not quite (FFT libraries are a thing), but pressing buttons on a keyboard is leagues easier than reliably detecting (and filtering noise from) tones coming through a microphone! Not a bad suggestion though