key input event made with C