Note - I have modified Steve's animate1 so that the key pressed determines which way the block moves. I used Steve's key.html program to figure out the codes. Use the arrows to move the block.