logs every keypress and store it for later