Microsoft Silverlight will reach end of support after October 2021. Learn more.

Provides data for the KeyDown and KeyUp events.

Syntax Notes

KeyboardEventArgs is obtained as input for your own KeyDown and KeyUp event handlers.

Managed Equivalent



KeyboardEventArgs is used with the KeyDown and KeyUp events.

For more information on basic concepts, see Events Overview for Silverlight or Keyboard Support. Note that these topics are written primarily for users of the managed API, and may not have code examples or specific information that address the JavaScript API scenarios.