log what key is pressed