Input: introduce input_inject_event() function