-// This is activated (and canceled) by pressing the `/~ key. To change it to a
-// differet key, edit the ascii value on line 301
-//
-// Also, you can change the character set a few lines down. Don't use the "L"
-// key unless you change the on line 235.
-
-
+// This is activated (and canceled) by pressing the ^C
+// Press L (first) to switch to one-hand mode
+
+// I was getting some very funky return values from String.fromCharCode() for
+// punctuation keys so I made my own table. You might need to change this for
+// your computer/keyboard. You'll need to have every character in "charset" in
+// here.
+
+var key_to_char = {
+ '84': 't',
+ '72': 'h',
+ '83': 's',
+ '78': 'n',
+ '68': 'd',
+ '189': '-',
+ '82': 'r',
+ '67': 'c',
+ '71': 'g',
+ '77': 'm',
+ '86': 'v',
+ '87': 'w',
+ '66': 'b',
+ '191': '/',
+ '186': ';',
+ '55': '7',
+ '56': '8',
+ '57': '9',
+ '65': 'a',
+ '69': 'e',
+ '70': 'f',
+ '73': 'i',
+ '74': 'j',
+ '75': 'k',
+ '79': 'o',
+ '80': 'p',
+ '81': 'q',
+ '85': 'u',
+ '88': 'x',
+ '89': 'y',
+ '90': 'z',
+ '50': '2',
+ '51': '3',
+ '52': '4',
+ '222': "'",
+ '76': 'l' // switch to one-hand mode
+}