This is my version of Tetris. Use the arrow keys to move the tetromino left, right, up and down. Use the 'a' and 'd' keys to rotate the tetromino clockwise and counter-clockwise. This code is run using the Processing IDE, the main loop is in the Tetris file.