map.overrideKey("down",function() { map.getPlayer().move("down"); map.getPlayer().setColor("#0f0"); });