def press(keys, presses=<NUM_LIT:1>, interval=<NUM_LIT:0.0>, pause=None, _pause=True):
if type(keys) == str:<EOL><INDENT>keys = [keys] <EOL><DEDENT>else:<EOL><INDENT>lowerKeys = []<EOL>for s in keys:<EOL><INDENT>if len(s) > <NUM_LIT:1>:<EOL><INDENT>lowerKeys.append(s.lower())<EOL><DEDENT>else:<EOL><INDENT>lowerKeys.append(s)<EOL><DEDENT><DEDENT><DEDENT>interval = float(interval)<EOL>for i in range(presses):<EOL><INDENT>for k in keys:<EOL><INDENT>_failSafeCheck()<EOL>platformModule._keyDown(k)<EOL>platformModule._keyUp(k)<EOL><DEDENT>time.sleep(interval)<EOL><DEDENT>_autoPause(pause, _pause)<EOL>
Performs a keyboard key press down, followed by a release.

    Args:
      key (str, list): The key to be pressed. The valid names are listed in
      KEYBOARD_KEYS. Can also be a list of such strings.
      presses (integer, optiional): the number of press repetition
      1 by default, for just one press
      interval (float, optional): How many seconds between each press.
      0.0 by default, for no pause between presses.
      pause (float, optional): How many seconds in the end of function process.
      None by default, for no pause in the end of function process.
    Returns:
      None