Create keyObject