Add frame logging and keyboard support