UWP detect keyboard presses and release

159 views Asked by At

I do not want to use a paint canvas or virtual keyboard, simply fire an event when key_A is pressed and another event when released.

I looked at UIElement.keydown, but it seems to work with onscreen keys only

1

There are 1 answers

1
Stéphanie Hertrich On

Using Window.Current.CoreWindow.KeyDown += CoreWindow_KeyDown; should be working.