Problems with KeyCode in c# UWP
<p>I use this code to recognize which key is pressed, but when I try to recognize the arrows it just doesn't show anything or even activate the <code>TestFunction();</code></p>
<pre><code>private void CoreWindow_CharacterReceived(CoreWindow sender, CharacterReceivedEventArgs args)
{
    if (args.KeyCode == 39) //Right Arrow
    {
        //Do somthing
        TestFunction();
    }
    else //Detect All arrows KeyCode(Never display anything for this keys)
    {
        Debug.Write(args.KeyCode.ToString());
    }
}
</code></pre>
<p>PD: I use this code at execution:</p>
<pre><code>Window.Current.CoreWindow.CharacterReceived += CoreWindow_CharacterReceived;
</code></pre>