debugging keypresses