Use the arrow keys or the w,a,s,d keys to move, collect all gems and exit through the door to escape/win.