Moved runloop to 'after frame'
Some cleanup in GLFW input code
Started with emscripten input code