Implement key modifiers (shift, alt, etc.) for keyup/down callbacks