A quick idea: when you replace my debug line with 'Debuglog EventId()' then you get 1025 for ordinary keys and 260 for the Enter key. Didn't bother to find which 'named' event ID this is supposed to be.. but perhaps until things are cleared up you can use this instead?