Binary package “xdotool” in ubuntu xenial

simulate (generate) X11 keyboard/mouse input events

 xdotool lets you programatically (or manually) simulate keyboard
 input and mouse activity, move and resize windows, etc. It does this
 using X11's XTEST extension and other Xlib functions.