Finally I get a solution writting this:
It's seems the "alias" key is not working and now it must be used the get_key_state method. In addition also I have to use the path AMS::Keyboard to access to keyboard library.
I let this post in case somebody else want to use the keyboard function in MSphysics.
Regards