*/
private static final void type(Input input, Key key) {
UIAction[] actions = {UIAction.KeyDown, UIAction.KeyPress, UIAction.KeyUp};
for (UIAction action : actions) {
UIEvent event = new UIEventMockForInput(input);
event.action = action;
event.which = key.code;
input.event().publish(event);
}