don't use null like this please, 

```js
var key;
if (shouldGroup){
    key = e.key;
}
```