code: def command(self, keycode):
          '''
          Presses a key.
          Generates the actual key press on the device and prints the line in the script.
          '''
  
          self.device.press(keycode)
          self.printOperation(None, Operation.PRESS, keycodef command(self, keycode):
          '''
          Presses a key.
          Generates the actual key press on the device and prints the line in the script.
          '''
  
          self.device.press(keycode)
          self.printOperation(None, Operation.PRESS, keycode)
docs: Presses a key.
          Generates the actual key press on the device and prints the line in the script.