Issues combining light code with tone keyboard

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