Ok,

this should work then (kind of!)

Code:
if right(@date,5) = right(@comment,5)
flushkb
while not kbhit()
play "happybday.wav"
loop
endif



Caution:

It will either finish playing the file after keyboard was hit (assuming that play waits for the file to be played) or it will start bazillions of instances of the wav file (assuming play command doesn't wait for execution)

I am too afraid to test this for ya, so please handle with care

[Maybe a sleep 5 somewhere in the loop is a good idea]
_________________________