Print the event.which of a keyup event (the keycode of a given key).
Select blue button to capture keyboard; separators and linelength are selectable.

Truncate lines at characters.

Separator character:

Space out elements: (ensures each element is 3 chars + separator)

Clear results:

Click here to capture keyboard focus!