# Help with firing game sample

**URL:** <https://forum.kirupa.com/t/help-with-firing-game-sample/33788>\
**Category:** Uncategorized\
**Created:** [October 23, 2003, 5:35pm UTC](https://forum.kirupa.com/t/help-with-firing-game-sample/33788 "2003-10-23T17:35:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kitchie](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kitchie/32/103_2.png) [@kitchie](https://forum.kirupa.com/u/kitchie)\
**Post date:** [October 23, 2003, 5:35pm UTC](https://forum.kirupa.com/t/help-with-firing-game-sample/33788/1 "2003-10-23T17:35:42Z")

</div>

hey i tried using the scripts in the firing game sample located:  
[http://www.kirupa.com/developer/mx/fire.htm](http://www.kirupa.com/developer/mx/fire.htm)

in this game, you have to click to fire. but i need to fire using the keys. i already tried using

if (Key.isDown(Key.SPACE)) {

–instead of

on (release)

it fires but it doesn’t duplicate. please help me with the code.  
tnx!!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 23, 2003, 6:18pm UTC](https://forum.kirupa.com/t/help-with-firing-game-sample/33788/2 "2003-10-23T18:18:15Z")

</div>

```auto
on (keyPress "<Space>") {
	statement(s);
}

```

😛
