import pygame import sys pygame.init() display = pygame.display.set_mode((400, 300)) while True: mouse_pos = pygame.mouse.get_pos() for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.QUIT() sys.exit() font = pygame.font.SysFont("Verdana", 20) text_value = "" text = font.render(text_value, True, (255, 255, 255)) while True: mouse_pos= pygame.mouse.get.pos() for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() sys.quit() if event.type == pygame.KEYDOWN: if event