title: Mapping a Key on the Keyboard to Exit Loop in Arduino
body: <p>I want to create a function on the Arduino and put it in all the loops in my program such that whenever during use, the user can press the "Esc" key on the keyboard to cancel what it is currently doing. A serial monitor is being used with my current code.</p>
  
  <p>My entire code is very long which is why I don't have it posted, but if you can answer the situation i described above, I will be able to implement it. You can imagine a simple loop running forever that will exit anytime the "Esc" key is pressed.</p>