Cleaning up keyboard input code, commented out unused(?) events.