added debug logger
added some debug messages
bugfix for keyboard and backspace on Mac