Just found out how to fix the bug, just press alt+enter to exit fullscreen mode and the game should work as intended!