With the addListener() and removeListener() functions you can make additional functions fire when onKeyUp and onKeyDown fire

Use the arrows keys to mvoe the box and space bar to change the background. Pressing 'Enter' will remove the listener for the box and pressing 'Shift' will add it again.