Does Keyboard.begin() and Keyboard.end() make my code slower?
The Keyboard::begin() and Keyboard::end() functions,  if you actually look at the code are empty functions. They do nothing.

In theory the compiler should just optimise them out.