Added the ability to change global keybindings for input_manager

Also fixed a typo, and fixed the popup_getkey() function which returned a char instead of a long.