Rather than keydown events, it's better to to use keypress events for character input (e.g. letters, digits, symbols) but not things like tab, arrows, ctrl+c, ctrl+v etc.
Also, I'd suggest converting keypress and keydown events to strings and then looking up the handlers in a table.
Rather than keydown events, it's better to to use keypress events for character input (e.g. letters, digits, symbols) but not things like tab, arrows, ctrl+c, ctrl+v etc.
Also, I'd suggest converting keypress and keydown events to strings and then looking up the handlers in a table.