Fix retina-related framebuffer size issues. Update keyboard input each frame.