I'm trying to check if keyUp is pressed by event.loop in pygame, but when i click any other button on keyboard i get the same output with print(event.type) that every key has same id as pygame.KEYUP Here is the code:
while True:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            pygame.quit()
            exit()
        if event.type == pygame.KEYUP: print("key up")
 
     
    