function send_keysym(keysym) {

        var guac = GuacUI.Client.attachedClient;
        if (!guac)
            return;

        guac.sendKeyEvent(1, keysym);
        guac.sendKeyEvent(0, keysym);

    }
Presses and releases the key corresponding to the given keysym, as if
typed by the user.

@param {Number} keysym The keysym of the key to send.