Log key stroke