First attempt from http://www.breakthesecurity.com/2011/03/learn-to-create-keylogger-using-cbasic.html