I tried running this code but I do not get any output.
while running:
for event in pygame.event.get():
print("event") # Checking if it detects an event
if event.type == pygame.MOUSEBUTTONDOWN:
print("Mouse") # Checking if it detects the click
elif event.type == pygame.KEYDOWN:
print("Key") # Checking if it detects any key being pressed