This object allows you to simulate keyboard actions.
Constructor function.
var myObject = new Keyboard();
Presses a key.
myObject.pressKey(key);
The key parameter can be a single letter or a key name.
Releases a key.
myObject.releaseKey(key);
The key parameter can be a single letter or a key name.
Triggers a key. (press and release)
myObject.triggerKey(key);
The key parameter can be a single letter or a key name.
Write text.
myObject.writeText(text);
myObject.writeText(text, delay);