Fixed kbdHook to get the correct value