Log motion and key events.