As the script is in the autoload
folder, nothing will be defined by default (only stuff in the plugin
folder is automaticaly sourced). As described in the documentation, you need to explicitly define a mapping:
call togglebg#map("<F5>")
or you could move the script to the plugin
folder.