Fix a few bugs in texture atlas
Keyboard input
Opengl binding work.