slight changes to the keyboard and events files