 import flash.ui.ContextMenu;
 import flash.ui.ContextMenuItem;
 import flash.ui.Keyboard;
+
+import flash.utils.ByteArray;
 
 /**
  * The Witgap client application.

     */
    protected function readMessages (event :ProgressEvent) :void
    {
    }

    /**

        _socket.writeShort(6);
        _socket.writeShort(event.type == KeyboardEvent.KEY_DOWN ? KEY_PRESSED : KEY_RELEASED);
        _socket.writeUnsignedInt(getQtKeyCode(event));
        _socket.flush();
    }

    /**
