fixed mouse and keyboard input and controller input