world.js: Refactor move commands out of keyDown
world.js: Refactor move commands out of keyDown

In order to better handle move commands, refactor them out of the keyDown
event handler. This will enable using other input methods to trigger a move
command, such as mouse clicks or touch events.

homeofmatt/play_adarkroom,doublespeakgames/adarkroom,crafteverywhere/adarkroom,purplemilk/adarkroom,pablo-new17/adarkroom,tehp/adarkroom,Bleyddyn/adarkroom,snazzysano/snazzysano.github.io,Tedko/adarkroom,kaisyu/adarkroom,bdorer/adarkroom,Razynoir/adarkroom,kaisyu/adarkroom,ngosang/adarkroom,marty13612/darkroom,Bleyddyn/adarkroom,ikoan/adarkroom,doublespeakgames/adarkroom,DDReaper/adarkroom,tehp/adarkroom,acutesoftware/adarkroom,as02700/adarkroom,snazzysano/adarkroom,sbakht/adarkroom,marty13612/darkroom,fsladkey/adarkroom,Tedko/adarkroom,acutesoftware/adarkroom,Continuities/adarkroom,Pioneer11X/adarkroom,ngosang/adarkroom,pandaofpie/adarkroom,gerred/adarkroom,snazzysanoj/snazzysanoj.github.io,purplemilk/adarkroom,JamesKent/adarkroom,doublespeakgames/adr-desktop,asteri0n/adarkroom,fsladkey/adarkroom,ChapmanCPSC370/adarkroom,Razynoir/adarkroom,JamesKent/adarkroom,kaisyu/adarkroom,snazzysanoj/snazzysanoj.github.io,crafteverywhere/adarkroom,snazzysanoj/snazzysanoj.github.io,doublespeakgames/adarkroom,bdorer/adarkroom,DDReaper/adarkroom,Pioneer11X/adarkroom,as02700/adarkroom,ikoan/adarkroom,akfish/adarkroom,gerred/adarkroom,pablo-new17/adarkroom,sbakht/adarkroom,snazzysano/snazzysano.github.io,asteri0n/adarkroom,Continuities/adarkroom,snazzysano/adarkroom