Add new functions for memory alloction & data copy

From msg_show_console_dialog(), a new function was created
for memory allocation for hotkeys & dialog string.
Similarly, another function created for copying hotkeys
& dialog string.
Style corrections in the two new functions

Style changes in the two new function:
cpy_hotkeys_and_msg() & console_dialog_alloc()