# MapKeyEvent

The parts of a keyboard event the map shortcuts read.

This is an interface exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import type { MapKeyEvent } from "@mapcairn/core";
 
interface MapKeyEvent
```

## Properties

### altKey

```ts
readonly altKey: boolean;
```

Whether Alt (Option on a Mac) was held.

### ctrlKey

```ts
readonly ctrlKey: boolean;
```

Whether Control was held.

### key

```ts
readonly key: string;
```

The key's value, as `KeyboardEvent.key` gives it.

### metaKey

```ts
readonly metaKey: boolean;
```

Whether Meta (Command on a Mac) was held.

### shiftKey

```ts
readonly shiftKey: boolean;
```

Whether Shift was held.

Source: [packages/core/src/keyboard/keyboard.ts:17](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/keyboard/keyboard.ts#L17)
