# Listener must be a function. Key down + function with arguments

**URL:** <https://phaser.discourse.group/t/listener-must-be-a-function-key-down-function-with-arguments/2152>\
**Category:** Phaser 3\
**Created:** [April 18, 2019, 2:36pm UTC](https://phaser.discourse.group/t/listener-must-be-a-function-key-down-function-with-arguments/2152 "2019-04-18T14:36:00Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Skwal](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/skwal/32/1212_2.png) [@Skwal](https://phaser.discourse.group/u/Skwal)\
**Post date:** [April 19, 2019, 3:15pm UTC](https://phaser.discourse.group/t/listener-must-be-a-function-key-down-function-with-arguments/2152/13 "2019-04-19T15:15:51Z")

</div>

Yes @TheHaricover, typos in actual code will generate errors, but typos in strings like this won’t, because they could literally be anything; unless some code validates it of course.  
Basically, the reason why it didn’t complain about `Enter` is that you could have created your own event with that name, and it wouldn’t be an error (just a terrible idea 😃 ).

---

_[View the full topic](https://phaser.discourse.group/t/listener-must-be-a-function-key-down-function-with-arguments/2152)._
