Changed rendering and Keyboard Handling a bit to guarantee the input gets registered