major mod to the rendering sys, keyboard inpput