Note that I updated slightly so that the regular number keys (not just num pad) work for movement, so that players on laptops could move diagonally too.