enhanced keyboard driver to support shift- and toggle-codes