logging keystrokes for debugging