def route_volume_down(): return press_key(UCKeyCode('XF86AudioRaiseVolume', None, None, None))
def route_volume_mute(): return press_key(UCKeyCode('XF86AudioMute', None, None, None))
def route_volume_previous(): return press_key(UCKeyCode('XF86AudioPrev', None, None, None))
def route_volume_up(): return press_key(UCKeyCode('XF86AudioLowerVolume', None, None, None))
def route_volume_play(): return press_key(UCKeyCode('XF86AudioPlay', None, None, None))
def route_volume_next(): return press_key(UCKeyCode('XF86AudioNext', None, None, None))
def route_keys_return(): return press_key(UCKey.UC_RETURN)
def char(key): key_code = get_key_by_text(key.upper()) press_key(key_code) print 'Received char: %s' % key
def route_keys_escape(): return press_key(UCKey.UC_ESCAPE)
def route_keys_right(): return press_key(UCKey.UC_RIGHT)
def route_keys_left(): return press_key(UCKey.UC_LEFT)
def route_keys_down(): return press_key(UCKey.UC_DOWN)
def route_keys_up(): return press_key(UCKey.UC_UP)