Unfortunately, the only function called for that is walk(), which is merely the client side code that responds to the key press. I guess that, since it is related to movement, it has to respond too quickly (to feel responsive and fluid) to make a function call to the server before it takes effect.