Permalink
Browse files

Merge pull request #67 from qiao/master

Fixed README
  • Loading branch information...
2 parents 51e5a04 + d672658 commit aaf32311362e4c1ec9dce6bc89b0d1b8ebf2da5d @madrobby committed Dec 17, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.markdown
View
@@ -74,11 +74,11 @@ if(key.shift) alert('shift is pressed, OMGZ!');
At any point in time (even in code other than key shortcut handlers),
you can query the `key` object for the state of any key. This
is very helpful for game development using a game loop. For example,
-`key.isDown(77)` is `true` if the M key is currently pressed.
+`key.isPressed(77)` is `true` if the M key is currently pressed.
```javascript
-if(key.isDown("M")) alert('M key is pressed, can ya believe it!?');
-if(key.isDown(77)) alert('M key is pressed, can ya believe it!?');
+if(key.isPressed("M")) alert('M key is pressed, can ya believe it!?');
+if(key.isPressed(77)) alert('M key is pressed, can ya believe it!?');
```
You can also get these as an array using...

0 comments on commit aaf3231

Please sign in to comment.