---
title: "KeyboardEvent | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Variable KeyboardEvent

KeyboardEvent: {  
    DOM\_KEY\_LOCATION\_LEFT: 1;  
    DOM\_KEY\_LOCATION\_NUMPAD: 3;  
    DOM\_KEY\_LOCATION\_RIGHT: 2;  
    DOM\_KEY\_LOCATION\_STANDARD: 0;  
    prototype: [KeyboardEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.KeyboardEvent/);  
    new (type: string, eventInitDict?: [KeyboardEventInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.KeyboardEventInit/)): [KeyboardEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.KeyboardEvent/);  
}

#### Type Declaration

-   -   new (type: string, eventInitDict?: [KeyboardEventInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.KeyboardEventInit/)): [KeyboardEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.KeyboardEvent/)
    -   #### Parameters
        
        -   type: string
        -   `Optional`eventInitDict: [KeyboardEventInit](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.KeyboardEventInit/)
        
        #### Returns [KeyboardEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.KeyboardEvent/)
        
-   ##### `Readonly`DOM\_KEY\_LOCATION\_LEFT: 1
    
-   ##### `Readonly`DOM\_KEY\_LOCATION\_NUMPAD: 3
    
-   ##### `Readonly`DOM\_KEY\_LOCATION\_RIGHT: 2
    
-   ##### `Readonly`DOM\_KEY\_LOCATION\_STANDARD: 0
    
-   ##### prototype: [KeyboardEvent](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.KeyboardEvent/)
