add convertKeyCharacterToKeyCode method