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 ***