Issues combining light code with tone keyboard

Have you tried turning on a LED when you detect that a button becomes pressed ?

Of course, with those useless delay()s, make sure you press the switch long enough.