Add add_hotkey_event() to context.c

targets #400 
This temp. var is unnecessary. But that's a style question, since the compiler would probably optimize that.