Merge pull request #567 from abodelot/x11keyrepeat

Fixed disabling key repeat on Linux (#564)
Basic scancode system (adapted from SDL).