changes:
move saveProgress() and processKeyDown() back into onload handler -
and add them with addEventListener
otherwise cant load it as chrome extention -
get this error
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' chrome-extension-resource:"
not allowed to execute inline scripts - only sourced from an external file.

simplified delayed save

some cleanup