Replaces keycodes by keysets