Correctly track number of render cycles, now just need to capture keyboard input