Ensured debug mode key handlers always exist

Before this commit the debug console's key handler wasn't added to
saved games which had not been saved with debugging enabled and
the debug script's key handler would only be added to saved games
older than 85 when debugging was enabled, so if debugging was then
enabled and a saved game newer than 85 was loaded the key handler
for the debug script would be missing.