(self, **kwargs)
System.Management.Automation.Host.KeyInfo
        https://docs.microsoft.com/en-us/dotnet/api/system.management.automation.host.keyinfo

        This is the proper serialized form of KeyInfo from .NET, it is
        returned in a PipelineOutput message.

        :param code: The int value for the virtual key code
        :param character: The character
        :param state: The ControlKeyState as a string value
        :param key_down: Whether the key is pressed or released
System.Management.Automation.Host.KeyInfo
        https://docs.microsoft.com/en-us/dotnet/api/system.management.automation.host.keyinfo
System . Management . Automation . Host . KeyInfo https : // docs . microsoft . com / en - us / dotnet / api / system . management . automation . host . keyinfo
def __init__(self, **kwargs):
        """
        System.Management.Automation.Host.KeyInfo
        https://docs.microsoft.com/en-us/dotnet/api/system.management.automation.host.keyinfo

        This is the proper serialized form of KeyInfo from .NET, it is
        returned in a PipelineOutput message.

        :param code: The int value for the virtual key code
        :param character: The character
        :param state: The ControlKeyState as a string value
        :param key_down: Whether the key is pressed or released
        """
        super(KeyInfoDotNet, self).__init__()
        self._types = [
            "System.Management.Automation.Host.KeyInfo",
            "System.ValueType",
            "System.Object"
        ]
        self._adapted_properties = (
            ('code', ObjectMeta("I32", name="VirtualKeyCode")),
            ('character', ObjectMeta("C", name="Character")),
            ('state', ObjectMeta("S", 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 ( KeyInfoDotNet , self ) . __init__ ( ) self . _types = [ "System.Management.Automation.Host.KeyInfo" , "System.ValueType" , "System.Object" ] self . _adapted_properties = ( ( 'code' , ObjectMeta ( "I32" , name = "VirtualKeyCode" ) ) , ( 'character' , ObjectMeta ( "C" , name = "Character" ) ) , ( 'state' , ObjectMeta ( "S" , 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' )