Improved the global/local logic by eliminating loadGlobalKeys() and merging the functionality into loadKeys(). Also made a shortcut function string more clear.