When using a module function internally I like to declare it as 

```javascript
var isEnterKey = exports.isEnterKey = function(...) { ... }
```

The code that makes use of the function looks the same both inside and outside the module.