I feel dumb for not noticing this before, but it looks as if rack 0.6 plugin api does not give the keyboard modifiers along with the event? Seems like 1.0 has onSelectKey which gives all kinds of goodies, including mod. But 0.6 only has OnKey which give you the keycode and nothing else.