I am using embedded wizard to implement a simulator of the physical keyboard of a device that I am developing. Specifically, it is a tool designed to run only on windows, which Iwill use to control the device from the PC without the need for the integrated keyboard in the device.
I used multiple KeyHandlers to manage inputs from the PC keyboard.
I set these up to react only to pressing and releasing, and when one of these actions is performed I call two methods, which distinguish which button was pressed and react accordingly.
The problem is the following :
In the internal simulation of Embedded Wizard everything runs smoothly, in fact if I press and hold a button only one pressing event and one releasing event are launched.
If instead I generate the code and run the application from Visual Studio, by holding down a keyboard button events continue to be generated until I lift my finger.
I attach some screenshots to clarify the situation:
This is how all keyhandlers are set up:

This is what I see in Embedded Wizard's Log window when I press a button, hold it for some time and the release it.

And this is what I see in the output log of Visual Studio:

Here's snippets of the functions that handle key presses and releases

I am writing here because I have tried in various ways to solve the problem, both from embedded wizard and from middleware code,but I have not been able to understand what causes it.
Thanks in advance.
Best Regards
Dario