generate X11 KeyEvents