Added scancodes and flag for extended keys.

Fix output of keys needing the KEYEVENTF_EXTENDEDKEY flag and added
missing scan codes