msg_show_console_dialog(): New functions for memory alloction & data copy

New function created for memory allocation for hotkeys & dialog string.
Similarly, another function created for copying hotkeys & dialog string.
Style corrections: cpy_hotkeys_and_msg() & console_dialog_alloc()