Java.awt.Robot project used to easily spam a certain sequence of keys. Created originally for 2048 2^53 version.
(available at http://www.csie.ntu.edu.tw/~b01902112/9007199254740992/ )
Simply edit the main method's alg variable with your own key sequence and click into whatever window it should be acting on.