add closeAudio stopAudio to disable stream and to free alsa
better keyboard timing & cosmetic cleanup
rename of function