layout: docs
authors:
  - blairanderson
date: 2014-08-12 22:22:22
title: .keydown() in Javascript - without jQuery
description: Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element.
method: keydown
href: "docs/keydown.html"
status: "inactive"
---

#### Sorry, we do not have code examples for implementing [keydown](http://api.jquery.com/keydown/) in vanilla javascript.

It would be great if you submitted code on [github](https://github.com/blairanderson/without-jquery/blob/master/docs/keydown.md)

### Example:

```javascript
  //jQuery
  var i = keydown(taco);

  //Javascript
  var i = document[somethingOtherThankeydown](taco);

```

**REASONS:**
> Faster, and creates an event upon xyz

*example is computer generated, obviously not real.*
