Words like "donde" "que" or "cuando" are words used in questions, and their answers. The word has accent depending on if its on the question, or its answer, for example: "Qué le pasa a mi perro?" "Que tiene hambre" As you see, the first "que" has got accent and the second one doesn't. If its inside the question, it has got an accent, and if its not, it hasn't got accent. I hope i helped you!
It doesn't have anything to do with actual moving. "Going to" is a construction that indicates a future action but doesn't have any literal meaning. If you ask "Are you going to read this book?", you don't expect the listener to walk anywhere, but just to grab the book and start mashing their face into the pages. The Spanish "ir a" construction has the exact same function.
Granted, it's a bit awkward when combined with "sleep".