

# KeyPressArguments
<a name="API_KeyPressArguments"></a>

Arguments for a key press action.

## Contents
<a name="API_KeyPressArguments_Contents"></a>

 ** key **   <a name="BedrockAgentCore-Type-KeyPressArguments-key"></a>
The key name to press (for example, `enter`, `tab`, `escape`).  
Type: String  
Required: Yes

 ** presses **   <a name="BedrockAgentCore-Type-KeyPressArguments-presses"></a>
The number of times to press the key. Valid range: 1–100. Defaults to 1.  
Type: Integer  
Valid Range: Minimum value of 1. Maximum value of 100.  
Required: No

## See Also
<a name="API_KeyPressArguments_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/bedrock-agentcore-2024-02-28/KeyPressArguments) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/bedrock-agentcore-2024-02-28/KeyPressArguments) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/bedrock-agentcore-2024-02-28/KeyPressArguments) 