Wrote a user keyboard emulation class that replicates a file into standard input for testing the keyboard logger module