Hi, I want to write code so that pressing a specified button, at any time, will run some function. I don't really have an idea of how to do this. Can anyone point me in some direction? To give more information of what I want - I am trying to write code for a irobot create to stop driving when I hit a button. I need the button press function to happen even if the program is in an infinite while loop. Any help is appreciated.