There exists keyboards which sends keycodes larger than 255 (i.e. Logitech S510). The kernel seems to be fixed by now, but XkbMaxLegalKeyCode is set to 255 in include/extensions/XKB.h.
*** This bug has been marked as a duplicate of bug 11227 ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.