# # keyboard input
# if event.type == pygame.KEYDOWN:
#     if event.key == pygame.K_s:
#         play_song()
#     elif event.key == pygame.K_p and paused == False:
#         pause_song()
#     elif event.key == pygame.K_q:

#         # write last known time when quitting
#         file1 = open("temp.txt", "w")
#         file1.write(str(timer) + ',' + str(file))

#         pygame.mixer.quit()
#         running = False
