Fixed the control flow bug.
Fixed a bug that manipulated the trace incorrectly.
Getting the right events associated with a user's key press.
Fixed another trace manipulation bug, and script now runs, but string parameterization still ineffective.