# OnClientKeyPressing

The **OnClientKeyPressing** client-side event occurs when a combobox receives the focus and the user presses a key.

The event handler receives two parameters:

1. The instance of the combobox firing the event.

2. An eventArgs parameter containing the following properties and methods:

* **get_domEvent()** returns the DOM event object. You can get the altKey, shiftKey, ctrlKey and keyCode from the DOM event object.

This example below uses the **OnClientKeyPressing** event to execute custom JavaScript when the user tabs out:

```ASPNET
<script language="javascript" type="text/javascript">
	function HandleKeyPress(sender, eventArgs)
	{
	 if (eventArgs.get_domEvent().keyCode == 9) {       
		// handle tab out
		}
	}
 </script>
<telerik:radcombobox 
	id="RadComboBox1" 
	runat="server" 
	onclientkeypressing="HandleKeyPress">
</telerik:radcombobox>
```

## See Also

* [Keyboard Support](https://www.telerik.com/products/aspnet-ajax/documentation/controls/combobox/accessibility-and-internationalization/keyboard-support)

* [TextChanged](https://www.telerik.com/products/aspnet-ajax/documentation/controls/combobox/server-side-programming/textchanged)

* [Prevent from Typing Particular Characters](https://www.telerik.com/products/aspnet-ajax/documentation/controls/combobox/how-to/prevent-from-typing-particular-characters)
