log key presses