kbdlogger: Removed buggy code

Code cleanup and write the device and chardev support from scratch