Is there a way to make a listener for a key press to begin a loop?

Example: I press the Tab key on my keyboard and the programmed loop begins running.

Essentially creating a keyboard hotkey.

  • Please edit your question so that it meets the quality standards set out in the help center.
    – sa_leinad
    Commented Nov 10, 2016 at 0:50

1 Answer 1


The answer is yes and no.

Only the Arduino and its IDE, no.

The way I found is to use Processing to wait until it detects a hotkey, then send a serial message to your Arduino. If you tune in the right COM port, this should work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.