Check if a keyup event is a modifier (shift, alt, ctrl, metakey)