Key Pressed Diffuculty Pls Help ASAP!

Guys I am working on a project and I need to write a program so that i.e an led will turn on when the letter "l" is being pressed and turn off when released.

In other words I need a program that will know which key is being pressed without having to press enter in the serial monitor. So I think that the serial monitor cannot work this out for me and I have to find another method.

I thought that maybe I need to use a keylogger but all the keyloggers I found produce a report. I think that the report will be available for me to see after the keylogging activity is stopped. Anyway, all suggestions are welcome :slight_smile:

Thanks in advance :slight_smile:

Use a proper terminal emulator, like puTTY.

Thank You for your reply :slight_smile: but can you explain further to me since I never used a terminal emulator before.
Thanks in advance :slight_smile:

Try here

Yes, I googled it but what I don't know is how can I use this emulator to know which key is being pressed on the keyboard.

Thanks in advance :slight_smile:

Just use the terminal emulator instead of the serial monitor.

Any more solutions please because I still don't know how to connect the emulator with the arduino IDE (which settings etc)

It's nothing to do with the IDE.
Just load your code onto the Arduino, run up the terminal emulator and connect it to the same COM port the IDE was connected to.

ok but as far as I went I could not write in the terminal and so I could not get the key which I am pressing. Thank you for you patience. :slight_smile:

Did you set the same serial bit rate as in your sketch?
Did you select the correct COM port?

I will try and get back to you thanks once again :slight_smile:

Thanks I think That worked :slight_smile: I''l be experimenting more with it