added some debugging code to test keyboard issues