Glad you like it! Just uploaded a patch that should fix the bug you encountered where the fight restarts.
The key can be used to unlock a chest in a later encounter (though there's no guarantee that encounter will happen).
I'll consider adding some kind of endless mode in a future update.