pygame.K_KP_ENTER 1


# pygame.K_KP_ENTER is the enter key on your keypad or numpad
if event.type == pygame.KEYDOWN:
  if event.key == pygame.K_KP_ENTER:

Here is what the above code is Doing:
1. We’re checking if the event is a KEYDOWN event.
2. If it is, we’re checking if the key that was pressed is the enter key on the keypad.
3. If it is, we’re printing ‘ENTER’ to the console.

Similar Posts