---
title: "code property"
url: "https://reference.aspose.com/svg/python-net/aspose.svg.dom.events/keyboardevent/code/"
product: "Aspose.SVG for Python via .NET API References"
---


## code property


The code holds a string that identifies the physical key being pressed. The value is not affected by the current keyboard layout or modifier state, so a particular key will always return the same value.
### Definition:
```python
@property
def code(self):
    ...
@code.setter
def code(self, value):
    ...
```

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