Yes, it is the same word in different cases. In the sentence "чего/что ты хочешь?" both Accusative (что) and Genitive (чего) cases are acceptable, so sentences mean the same. Genitive here is of a bit more colloquial style though.