better unregister support for key and shortcuts