Formatted keystrokes as code