fix use getKeyCode when getExtendedKeyCode fails

using getKeyCode when getExtendedKeyCode returns VK_UNDEFINED