(self, **kwargs)
[MS-PSRP] 2.2.3.26 KeyInfo
        https://msdn.microsoft.com/en-us/library/ee441795.aspx

        Represents information about a keyboard event, this is used for the
        serialized of a ReadKey host method and is not the same as the
        serialized form of KeyInfo in .NET (see KeyInfoDotNet).

        :param code: The int value for the virtual key code
        :param character: The character
        :param state: The ControlKeyState int value
        :param key_down: Whether the key is pressed or released
[MS-PSRP] 2.2.3.26 KeyInfo
        https://msdn.microsoft.com/en-us/library/ee441795.aspx
[ MS - PSRP ] 2 . 2 . 3 . 26 KeyInfo https : // msdn . microsoft . com / en - us / library / ee441795 . aspx
def __init__(self, **kwargs):
        """
        [MS-PSRP] 2.2.3.26 KeyInfo
        https://msdn.microsoft.com/en-us/library/ee441795.aspx

        Represents information about a keyboard event, this is used for the
        serialized of a ReadKey host method and is not the same as the
        serialized form of KeyInfo in .NET (see KeyInfoDotNet).

        :param code: The int value for the virtual key code
        :param character: The character
        :param state: The ControlKeyState int value
        :param key_down: Whether the key is pressed or released
        """
        super(KeyInfo, self).__init__()
        self._extended_properties = (
            ('code', ObjectMeta("I32", name="virtualKeyCode", optional=True)),
            ('character', ObjectMeta("C", name="character")),
            ('state', ObjectMeta("I32", name="controlKeyState")),
            ('key_down', ObjectMeta("B", name="keyDown")),
        )
        self.code = kwargs.get('code')
        self.character = kwargs.get('character')
        self.state = kwargs.get('state')
        self.key_down = kwargs.get('key_down')
def __init__ ( self , * * kwargs ) : super ( KeyInfo , self ) . __init__ ( ) self . _extended_properties = ( ( 'code' , ObjectMeta ( "I32" , name = "virtualKeyCode" , optional = True ) ) , ( 'character' , ObjectMeta ( "C" , name = "character" ) ) , ( 'state' , ObjectMeta ( "I32" , name = "controlKeyState" ) ) , ( 'key_down' , ObjectMeta ( "B" , name = "keyDown" ) ) , ) self . code = kwargs . get ( 'code' ) self . character = kwargs . get ( 'character' ) self . state = kwargs . get ( 'state' ) self . key_down = kwargs . get ( 'key_down' )