Ah that explains it! There must be a way to read hardware keycodes instead of the characters they map to, that would be more reliable. (or use arrow keys, they’re the same regardless of layout)