Hi guys, I'm having trouble figuring out how to read inputs from the arrow keys in matlab. I have a function which control an external board I have controlling a motor. I want to put this function in an if elso type code so that if the button is pushed the function powers the board (sets value to 1) else the board return to no power (sets value to zero). I dont need to know how to tell it to go to one or zero just to tell it to use the function I already have when I push the arro key. Thanks in advance, Oisin