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): whereinA, X, Y, Z, Q, R1, R2, R3, R4, R5, and n are described herein.