The invention relates to inhibitors of PI5P4K inhibitors useful in the treatment of cancers, neurodegenerative diseases, inflammatory disorders, and metabolic diseases, having the Formula (I): wherein A, X, Y, Z, Q, R 1 , R 2 , R 3 , R 4 , R 5 , and n are described herein.