Use arrow keys to move left and right. Up arrow to rotate the piece. Down arrow to speed up the piece moving down. Space bar to instantly drop the piece to the bottom.
All code and art by me.