last user input

Hi ALex,
is there an internal variable which always saves the last user input?

Usually player.currentcommand

Although it won't be populated if the player has just used the "oops" feature (e.g. "look at sfoa", "oops sofa" will run the equivalent of "look at sofa", but the player never typed that exact command in).

What are you trying to achieve though? There may be a better way.