Title says it all. Is there a way with pygame to get keyboard input when the window is minimized?
Yes, although you have to have it focused.
for event in pygame.event.get():
if event.type == pygame.KEYDOWN:
Otherwise it seems to not be possible according to this answer and this answer