Respect keymap children in next rewrite.

If some keymap bound to key in other keymap we'll ignore first keymap
rewrite if second keymap was already rewritten.