Add add_hotkey_event() to context.c

targets #400 
You can merge this and the line above.