Removed unused type.
Fix modifier keys.

The wrong mask was used making all modifier keys not be recognized.
Added credit.