
## __init__ {#str}

Initializes a new instance of the [`KeyboardEvent`](/html/python-net/aspose.html.dom.events/keyboardevent) class.



```python
def __init__(self, type):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| type | str | The event type. |



### See Also
* module [`aspose.html.dom.events`](../../)
* class [`KeyboardEvent`](/html/python-net/aspose.html.dom.events/keyboardevent)
