Added support to use key identifier in the key codes array