I'm learning python by Mag pi

in mag pi 33 , there is a code for keyboard contrrol (keyboard.py)
when i compile it,i see following error :
if event.key == pygame.K_UP:
'module' object has no attribute 'K_UP'



why????? in first I import :
import pygame, sys
import pygame.locals as GAME_GLOBALS
import pygame.event as GAME_EVENTS
what's your idea ??
