(C#) GetAsyncKeyState - Causes AntiVirus to flag as keylogger
I'm trying to write a small program that reads a few keystrokes. I used GetAsyncKeyState from user32 to read the keys states. But I can't build and run my app because the antivirus flags the program ass keylogger. Of course I can disable it temporarily, but I need it to run on a PC with antivirus enabled. Do you guys have any idea what can I do to fix this issue? Thank you!