'class Keyboard_' has no member named 'set_key1'

i use this function Keyboard.set_key1(0);

sketch_nov06a.ino: In function 'void setup()': sketch_nov06a:20: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:20: error: 'KEY_ENTER' was not declared in this scope sketch_nov06a:21: error: 'class Keyboard_' has no member named 'send_now' sketch_nov06a:26: error: 'class Keyboard_' has no member named 'set_modifier' sketch_nov06a:26: error: 'MODIFIERKEY_CTRL' was not declared in this scope sketch_nov06a:27: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:28: error: 'class Keyboard_' has no member named 'send_now' sketch_nov06a:29: error: 'class Keyboard_' has no member named 'set_modifier' sketch_nov06a:30: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:31: error: 'class Keyboard_' has no member named 'send_now' sketch_nov06a.ino: In function 'void ascii_input(char*)': sketch_nov06a:52: error: 'class Keyboard_' has no member named 'set_modifier' sketch_nov06a:52: error: 'MODIFIERKEY_ALT' was not declared in this scope sketch_nov06a:53: error: 'class Keyboard_' has no member named 'send_now' sketch_nov06a:57: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:57: error: 'KEYPAD_1' was not declared in this scope sketch_nov06a:58: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:58: error: 'KEYPAD_2' was not declared in this scope sketch_nov06a:59: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:59: error: 'KEYPAD_3' was not declared in this scope sketch_nov06a:60: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:60: error: 'KEYPAD_4' was not declared in this scope sketch_nov06a:61: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:61: error: 'KEYPAD_5' was not declared in this scope sketch_nov06a:62: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:62: error: 'KEYPAD_6' was not declared in this scope sketch_nov06a:63: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:63: error: 'KEYPAD_7' was not declared in this scope sketch_nov06a:64: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:64: error: 'KEYPAD_8' was not declared in this scope sketch_nov06a:65: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:65: error: 'KEYPAD_9' was not declared in this scope sketch_nov06a:66: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:66: error: 'KEYPAD_0' was not declared in this scope sketch_nov06a:67: error: 'class Keyboard_' has no member named 'send_now' sketch_nov06a:68: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:70: error: 'class Keyboard_' has no member named 'send_now' sketch_nov06a:72: error: 'class Keyboard_' has no member named 'set_modifier' sketch_nov06a:73: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:74: error: 'class Keyboard_' has no member named 'send_now' sketch_nov06a.ino: In function 'void release_keys()': sketch_nov06a:181: error: 'class Keyboard_' has no member named 'set_modifier' sketch_nov06a:182: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:183: error: 'class Keyboard_' has no member named 'send_now' sketch_nov06a.ino: In function 'void send_keys(byte, byte)': sketch_nov06a:190: error: 'class Keyboard_' has no member named 'set_modifier' sketch_nov06a:191: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:192: error: 'class Keyboard_' has no member named 'send_now' sketch_nov06a.ino: In function 'void omg(char*)': sketch_nov06a:199: error: 'class Keyboard_' has no member named 'set_modifier' sketch_nov06a:200: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:200: error: 'KEY_R' was not declared in this scope sketch_nov06a:201: error: 'class Keyboard_' has no member named 'send_now' sketch_nov06a:202: error: 'class Keyboard_' has no member named 'set_modifier' sketch_nov06a:203: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:204: error: 'class Keyboard_' has no member named 'send_now' sketch_nov06a:207: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:207: error: 'KEY_ENTER' was not declared in this scope sketch_nov06a:208: error: 'class Keyboard_' has no member named 'send_now' sketch_nov06a:209: error: 'class Keyboard_' has no member named 'set_key1' sketch_nov06a:210: error: 'class Keyboard_' has no member named 'send_now'

As the lack of libraries

How can I solution?

My board is arduino leonardo!

i use this function Keyboard.set_key1(0);

Where?

Try here first