Made it easier for modifier to handle F1-F12 keys.