Add add_hotkey_event() to context.c

targets #400