use arrow keys in processing code example Example: processing right arrow key void keyPressed() { if (keyCode == DOWN) { } }