Dont post maya binary files! ALWAYS post ASCII files, for the simple reason that a maya binary file can rootkit your machine faster than you can say "outch". I'm not saying your does not but to be honest I'm not really willing to risk it*, and having a extra virtual machine around at home to deal with this feels way too much like work so...**
In any case this is not hard to do, in fact I tend to use something much like this to check whether or not people are on top of their game. It is however not necessarily so self evident, since maya in general assumes something a flight sim does not. So you really need to calculate the axis direction yourself. Or just use setAttr, and break mayas graph but thats a quick and very dirty fix that works.
See the go rolling script for inspiration.
*and anybody who is risks suddenly needing to recover form backups. And if you dont have backups well no sympathy, half of the price of computing is in the redundancy, your trying to pull a fast one and deserve the consequences. Its not something that may happen it WILL happen sooner or later.
** well in fact I do but its the principle anyway, no need to open up even theoretical risks.