Map keys to arbitrary functions instead of parameters to square.move()