---
title: parseKeyboardElement
framework: hiddriverkit
role: symbol
role_heading: Instance Method
path: hiddriverkit/iouserhideventdriver/parsekeyboardelement
---

# parseKeyboardElement

Parses an element to see if it contains keyboard-related information.

## Declaration

```occ
virtual bool parseKeyboardElement(IOHIDElement *element);
```

## Parameters

- `element`: An IOHIDElement object to check.

## Return Value

Return Value true if the element contains relevant keyboard information, or false if it doesn’t.

## Discussion

Discussion This method checks the element to determine if it contains keyboard data suitable for dispatching in an event. If it does, the method stores a reference to the element for later use. When the driver object receives subsequent reports from the device, it uses the information in the stored keyboard elements to dispatch keyboard-specific events.

## See Also

### Parsing the Element Hierarchy

- [parseElements](hiddriverkit/iouserhideventdriver/parseelements.md)
- [parsePointerElement](hiddriverkit/iouserhideventdriver/parsepointerelement.md)
- [parseDigitizerElement](hiddriverkit/iouserhideventdriver/parsedigitizerelement.md)
- [parseScrollElement](hiddriverkit/iouserhideventdriver/parsescrollelement.md)
- [parseLEDElement](hiddriverkit/iouserhideventdriver/parseledelement.md)
