First prototype for sending key events.