I have a certain problem with an idiotic keyboard class I'm supposed to use instead of the regular methods that facilitate the interaction with the keyboard. My class is the following:

class...