Handle altGr in early return from onKeyPress

Issue #2671