fixed bug in key playback functions