# IGH_ToolstripItemKeyHandler interface

Namespace: [Grasshopper.GUI](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public interface IGH_ToolstripItemKeyHandler
```

Implement this interface if your control can be embedded in a context menu and it needs to respond to Enter and Escape presses from said menu.

**Derived types:** [GH_ColourPicker](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-colourpicker.md), [GH_ColourPickerBase](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-colourpickerbase.md), [GH_TextBoxInputBase](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.base.gh-textboxinputbase.md)

## Methods

- [RespondToEnter](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.igh-toolstripitemkeyhandler/respondtoenter.md): Handles an Enter keydown event.
- [RespondToEscape](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.igh-toolstripitemkeyhandler/respondtoescape.md): Handles an Escape keydown event.
