Add add_hotkey_event() to context.c

targets #400 
You can move this line to the top of the function.