'gets keypress events and moves/rotates acive shape'

def keypress(self, event):

    keycode = event.GetKeyCode()
    step = 5
    angle = 18
    if event.ControlDown():
        step = 1
        angle = 1
    if (keycode == 72):
        self.move_shape(((- step), 0))
    if (keycode == 76):
        self.move_shape((step, 0))
    if (keycode == 75):
        self.move_shape((0, step))
    if (keycode == 74):
        self.move_shape((0, (- step)))
    if (keycode == 91):
        self.rotate_shape((- angle))
    if (keycode == 93):
        self.rotate_shape(angle)
    event.Skip()
