generatekeyevent ('<data>')
Functionality of generatekeyevent is similar to typekey of LTFX project.
Used SPI_generateKeyboardEvent to generate the keyboard events.
| Returns | 1 on success, LdtpExecutionError exception will be thrown on failure |
Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/device.c
generatekeyevent ('Testing LDTP\'s enterstring function')