def remove_accelerator(control, key):
key = str_to_key(key)<EOL>t = _tables.get(control, [])<EOL>for a in t:<EOL><INDENT>if a[:<NUM_LIT:2>] == key:<EOL><INDENT>t.remove(a)<EOL>if t:<EOL><INDENT>_tables[control] = t<EOL><DEDENT>else:<EOL><INDENT>del _tables[control]<EOL><DEDENT>update_accelerators(control)<EOL>return True<EOL><DEDENT><DEDENT>return False<EOL>
Removes an accelerator from control.

control: The control to affect.
key: The key to remove.