removed unneeded code
added a test program to generate calculator key presses for testing