# KeyDownEventBehaviorImpl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-xaml-interactions-events/trait-keydowneventbehaviorimpl/

**trait** · [`ferroui-xaml-interactions-events`](/docs/0.5.0/api/ferroui-xaml-interactions-events/) · v0.5.0

```rust
trait KeyDownEventBehaviorImpl: StyledElementBehaviorImpl + $crate::Upcast<KeyDownEventBehavior>
```

The overridable members introduced by the class.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Events/key_down_event_behavior.rs#L21)

## Members

- [`on_key_down`](#function-on_key_down)

<a id="function-on_key_down"></a>

### on_key_down

```rust
fn on_key_down(this: &Self, sender: &Interactive, e: &KeyEventArgs)
```

Called when a key is pressed while the associated control has focus.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Events/key_down_event_behavior.rs#L21)

## Trait implementations

- [`KeyDownEventBehaviorImpl`](/docs/0.5.0/api/ferroui-xaml-interactions-events/trait-keydowneventbehaviorimpl/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
