0
for event in pygame.event.get():
            print("debug")
            if event.type == pygame.QUIT:
                pygame.quit()
                quit()
            if event.type == pygame.KEYDOWN:
                if event.key == pygame.K_LEFT:
                    self.place_block()
                    self.update_ui()
                    print("next")

the "debug" does not print at all when I press a key

I want the custom methods to run when the respective key is pressed I have plans to add direction later in the code

  • It's not clear from your code sample what the error is that's preventing your program from registering events. Please edit your question to include a [mcve] so it's possible to assist you. – import random Mar 29 '22 at 02:33

0 Answers0