Multiple keys can fire at the same time with the Key object. With the isDown() function, you can see if any key is pressed at any given moment.

Use the arrow keys to move the box around and spacebar to change the background.