Basic scancode system (adapted from SDL).