[#17] Fixed keyboard input, started working on rendering performance