Fixing a few keyboard codes and shortcuts.